ethical questions about global variables
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Tue Dec 16 04:43:47 EST 2008
En Tue, 16 Dec 2008 00:45:05 -0200, Giampaolo Rodola' <gnewsg at gmail.com>
escribió:
> Another doubt is the naming convention. PEP-8 states that global
> variables should use the lower_case_naming_convention but I've seen a
> lot of library module using the UPPER_CASE_NAMING_CONVENTION. What am
> I supposed to do about it?
Are you sure those UPPER_CASE names you've seen are actually variables? or
constants like:
CRLF = '\r\n'
(ok, it's not a true "constant" because the language doesn't prevent you
from modifying it... but the "intended usage" is to be a constant)
--
Gabriel Genellina
More information about the Python-list
mailing list