[issue20792] IDLE: Extend tests for PathBrowser

Steven D'Aprano report at bugs.python.org
Thu Feb 27 11:22:49 CET 2014


Steven D'Aprano added the comment:

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.

----------
nosy: +stevenjd

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20792>
_______________________________________


More information about the Python-bugs-list mailing list