Plz comment on this code
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Mon Sep 20 03:33:45 EDT 2010
In message
<b4616683-ad1e-4fd2-9595-5386333b98f3 at y31g2000vbt.googlegroups.com>, Alex
Willmer wrote:
> On Sep 19, 12:20 pm, Lawrence D'Oliveiro <l... at geek-
> central.gen.new_zealand> wrote:
>> In message
>> <fdd04662-0ae7-46a3-a7d3-d6bb00438... at j19g2000vbh.googlegroups.com>, Alex
>>
>> Willmer wrote:
>> > # NB Constants are by convention ALL_CAPS
>>
>> SAYS_WHO?
>
> Says PEP 8:
>
> Constants
>
> Constants are usually declared on a module level and written in all
> capital letters with underscores separating words. Examples
include
> MAX_OVERFLOW and TOTAL.
>
> -- http://www.python.org/dev/peps/pep-0008/
WHAT_IF_SOMETHING_IS_INITIALLY_CONSTANT,_BUT_LATER_BECOMES_A_CONFIG_VARIABLE,_OR_VICE_VERSA,_DOES_IT_NEED_TO_CHANGE_ITS_NAME?
More information about the Python-list
mailing list