Benjamin Kaplan wrote:


On Thu, Jan 22, 2009 at 1:16 AM, Aahz <a...@pythoncraft.com <mailto:a...@pythoncraft.com>> wrote:

    In article <mailman.7174.1231915778.3487.python-l...@python.org
    <mailto:mailman.7174.1231915778.3487.python-l...@python.org>>,
    Brendan Miller <catph...@catphive.net
    <mailto:catph...@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.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to