pep 8 constants

Benjamin Peterson benjamin at python.org
Thu Jan 22 22:11:26 EST 2009


Benjamin Kaplan <benjamin.kaplan <at> case.edu> writes:

> 
> 
> On Thu, Jan 22, 2009 at 1:16 AM, Aahz <aahz <at> pythoncraft.com> wrote:In
article <mailman.7174.1231915778.3487.python-list <at> python.org>,
> Brendan Miller <catphive <at> catphive.net> wrote:>>PEP 8 doesn't mention
anything about using all caps to indicate a constant.Now it does!
 Seehttp://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?

No, I don't think so. These are already well known as constants. Besides it
would break backward compatibility for little gain.







More information about the Python-list mailing list