(tuples), allow module_name_with_underscores
[Imported from Trac: page CodingStandards, version 4]
parent
3a7b3a57ce
commit
0143c34b0c
|
@ -9,8 +9,8 @@ Tahoe requires Python v2.4.2 or greater. No effort should be made to offer compa
|
||||||
|
|
||||||
### 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, `CamelCapNames` for classes, `all_lower_case_names` 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.
|
||||||
* Always put parenthesis around tuples. Write `(spam, eggs) = fetch_breakfast()` instead of `spam, eggs = fetch_breakfast()`.
|
* Put parenthesis around tuples if it helps make the code more readable, leave them off it not.
|
||||||
|
|
||||||
### comments, idioms, miscellany, license
|
### comments, idioms, miscellany, license
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue