pep 8 constants

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Wed Feb 25 03:45:23 EST 2009


Brendan Miller a écrit :
> PEP 8 doesn't mention anything about using all caps to indicate a constant.
> 
> Is all caps meaning "don't reassign this var" a strong enough
> convention to not be considered violating good python style? I see a
> lot of people using it, but I also see a lot of people writing
> non-pythonic code... so I thought I'd see what the consensus is.

Most - if not all - of the python code I've seen so far used this 
convention, and I always used (and respected) it myself.



More information about the Python-list mailing list