[Python-checkins] r68849 - peps/trunk/pep-0008.txt
benjamin.peterson
python-checkins at python.org
Thu Jan 22 04:33:57 CET 2009
Author: benjamin.peterson
Date: Thu Jan 22 04:33:57 2009
New Revision: 68849
Log:
add a note about constant conventions
Modified:
peps/trunk/pep-0008.txt
Modified: peps/trunk/pep-0008.txt
==============================================================================
--- peps/trunk/pep-0008.txt (original)
+++ peps/trunk/pep-0008.txt Thu Jan 22 04:33:57 2009
@@ -563,6 +563,12 @@
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
More information about the Python-checkins
mailing list