Changes between Version 9 and Version 10 of CodingStandards
- Timestamp:
- 2009-11-21T05:03:46Z (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CodingStandards
v9 v10 13 13 * Put parenthesis around tuples if it helps make the code more readable, leave them off if not. 14 14 15 === comments, idioms, miscellany, license, imports, docstrings ===15 === comments, idioms, miscellany, license, imports, docstrings, line widths === 16 16 17 17 Here is a useful header for starting new Python files: … … 36 36 * Feel free to ignore the part of PEP-8 that says to put each module import on a separate line, but don't import modules from multiple separate packages on the same line. 37 37 * Ignore the part of PEP-257 which says to put the trailing {{{{"""}}} of a multi-line docstring on a separate line separated by a blank line. (That rule appears to have been motivated by a limitation of Emacs which has been fixed.) 38 * Ignore the part of PEP-8 which specifes 79- or 72- char line widths. Use whatever line-widths look best to you in your editor on your screen. Please don't change other people's line-widths unnecessarily, making it look better on your display and worse on theirs. That's not nice. (Note: unless you are Brian. Brian can do anything he wants!) 38 39 39 40 === truths and falsehoods ===