add a note about constant conventions

This commit is contained in:
Benjamin Peterson 2009-01-22 03:33:57 +00:00
parent 9ec804df3f
commit 4cbb07b2a1
1 changed files with 6 additions and 0 deletions

View File

@ -563,6 +563,12 @@ Naming Conventions
Note: there is some controversy about the use of __names (see below).
Constants
Constants are usually declared on a module level and written in all
capital letter with underscores separating words. Examples include
MAX_OVERFLOW and TOTAL.
Designing for inheritance
Always decide whether a class's methods and instance variables