A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-January/085284.html below:

[Python-Dev] PEP 8 and constants

[Python-Dev] PEP 8 and constants [Python-Dev] PEP 8 and constantsGuido van Rossum guido at python.org
Wed Jan 21 19:48:59 CET 2009
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:
>
> http://groups.google.com/group/comp.lang.python/browse_thread/thread/ed964fe8ad6da7b7
>
> 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.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4