[Python-Dev] PEP 8 and constants
Guido van Rossum
guido at python.org
Thu Jan 22 04:03:53 CET 2009
Yes, that's what I commonly see.
On Wed, Jan 21, 2009 at 6:42 PM, Benjamin Peterson <benjamin at python.org> wrote:
> On Wed, Jan 21, 2009 at 12:48 PM, Guido van Rossum <guido at python.org> wrote:
>> On Wed, Jan 21, 2009 at 10:00 AM, Aahz <aahz at pythoncraft.com> wrote:
>>> In comp.lang.python, there has been some discussion of the fact that
>>> there are no guidelines in PEP 8 for constants:
>>> Is there any sentiment that PEP 8 should be updated to reflect the common
>>> usage of ALL_CAPS for constants?
>> It makes sense to codify this usage in PEP 8. I think it's by far the
>> most common convention adopted by projects that set their own style
>> guide based on PEP 8 with local additions.
> Do you suggest underscores between words in constants as with other names?
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev