[Python-Dev] PEP 8 and constants (original) (raw)
Aahz aahz at pythoncraft.com
Thu Jan 22 07:14:13 CET 2009
- Previous message: [Python-Dev] PEP 8 and constants
- Next message: [Python-Dev] About SCons Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Jan 21, 2009, Benjamin Peterson 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: http://groups.google.com/group/comp.lang.python/browsethread/thread/ed964fe8ad6da7b7 Is there any sentiment that PEP 8 should be updated to reflect the common usage of ALLCAPS 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. Ok. I added a note about constants in r68849.
Thanks!
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Weinberg's Second Law: If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
- Previous message: [Python-Dev] PEP 8 and constants
- Next message: [Python-Dev] About SCons Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]