Plz comment on this code

Alex Willmer alex at moreati.org.uk
Sun Sep 19 13:34:17 CEST 2010


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/



More information about the Python-list mailing list