Message212348
| Author |
steven.daprano |
| Recipients |
Saimadhav.Heblikar, steven.daprano, taleinat, terry.reedy |
| Date |
2014年02月27日.10:22:49 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1393496569.85.0.0660790961674.issue20792@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I think you may have misread PEP 8. It does not recommend a trailing underscore for names that shadow built-ins (e.g. file_ instead of file), it only recommends a trailing underscore when you need to use a keyword as a name (e.g. class_ instead of class). Shadowing built-ins should be done with care, but is permitted.
If there is little or no risk of confusion with the built-ins, there is no need to worry about shadowing them. It's just another name. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年02月27日 10:22:49 | steven.daprano | set | recipients:
+ steven.daprano, terry.reedy, taleinat, Saimadhav.Heblikar |
| 2014年02月27日 10:22:49 | steven.daprano | set | messageid: <1393496569.85.0.0660790961674.issue20792@psf.upfronthosting.co.za> |
| 2014年02月27日 10:22:49 | steven.daprano | link | issue20792 messages |
| 2014年02月27日 10:22:49 | steven.daprano | create |
|