[Imported from Trac: page CodingStandards, version 28]

Zancas 2014-02-26 03:42:26 +00:00
parent e2c3774c6c
commit 6a716c0f2a

@ -9,7 +9,7 @@ Tahoe requires Python v2.6.6 or greater (although the current code only refuses
### Naming and Layout ### Naming and Layout
* Use `underscore_separated_names` for functions, `CamelCapNames` for classes, `alllowercasenames` for modules, and `ALL_CAPS_NAMES` for constants. Use all lower-case variable names (e.g. `variable_name` or `variablename`). Prepend a leading underscore to private names. * Use `underscore_separated_names` for functions, `UpperCamelCapNames` for classes, `alllowercasenames` for modules, and `ALL_CAPS_NAMES` for constants. Use all lower-case variable names (e.g. `variable_name` or `variablename`). Prepend a leading underscore to private names.
* Put parentheses around tuples if it helps make the code more readable, leave them off if not. * Put parentheses around tuples if it helps make the code more readable, leave them off if not.
### Comments, Idioms, Miscellany, License, Imports, Docstrings, Line widths ### Comments, Idioms, Miscellany, License, Imports, Docstrings, Line widths