[issue14295] PEP 417: adding mock module

Éric Araujo report at bugs.python.org
Thu Mar 15 01:16:11 CET 2012


Éric Araujo <merwok at netwok.org> added the comment:

“If your public attribute name collides with a reserved keyword, append a single trailing underscore to your attribute name.  This is preferable to an abbreviation or corrupted spelling.  (However, notwithstanding this rule, 'cls' is the preferred spelling for any variable or argument which is known to be a class, especially the first argument to a class method.)”

----------

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


More information about the Python-bugs-list mailing list