Message108166
PEP 8 says: “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.” e.g. “class_” is used for an HTML class. “(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.)” I’d like this recommendation to be followed, even if it’s in an internal function. |
|
Date |
User |
Action |
Args |
2010-06-19 04:36:24 | eric.araujo | set | recipients:
+ eric.araujo, brett.cannon, mark.dickinson, belopolsky, eka, dmhouse, abrown, dudologist |
2010-06-19 04:36:23 | eric.araujo | set | messageid: <1276922183.88.0.483637794686.issue6641@psf.upfronthosting.co.za> |
2010-06-19 04:36:22 | eric.araujo | link | issue6641 messages |
2010-06-19 04:36:19 | eric.araujo | create | |
|