pep 8 constants
Terry Reedy
tjreedy at udel.edu
Thu Jan 22 11:52:44 EST 2009
Benjamin Kaplan wrote:
>
>
> On Thu, Jan 22, 2009 at 1:16 AM, Aahz <aahz at pythoncraft.com
> <mailto:aahz at pythoncraft.com>> wrote:
>
> In article <mailman.7174.1231915778.3487.python-list at python.org
> <mailto:mailman.7174.1231915778.3487.python-list at python.org>>,
> Brendan Miller <catphive at catphive.net
> <mailto:catphive at catphive.net>> wrote:
> >
> >PEP 8 doesn't mention anything about using all caps to indicate a
> constant.
>
> Now it does! See
> http://www.python.org/dev/peps/pep-0008/
>
> Thanks for bringing this up!
>
>
> Since the constants in the std lib (like math.pi and math.e) no longer
> follow PEP 8, should we expect them to change at some point in the future?
They are natural rather than arbitrary constants that I usually see in
caps, so I could see them as being in a different subcategory.
More information about the Python-list
mailing list