pep 8 constants

Brendan Miller catphive at catphive.net
Wed Jan 14 01:49:34 EST 2009


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.

Brendan



More information about the Python-list mailing list