[Python-ideas] AMEND PEP-8 TO DISCOURAGE ALL CAPS

David Mertz mertz at gnosis.cx
Wed Jan 30 21:07:11 EST 2019


On Wed, Jan 30, 2019, 4:23 PM Abe Dillon <abedillon at gmail.com wrote:

> Consider that math.pi and math.e are constants that are not all caps,
> have you ever been tempted to re-bind those variables?
>

I generally use 'from math import pi as PI' because the lower case is
confusing and misnamed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190130/2524f56a/attachment.html>


More information about the Python-ideas mailing list