[Python-ideas] π = math.pi

David Mertz mertz at gnosis.cx
Thu Jun 1 03:03:18 EDT 2017


It's awfully easy to add in your own code. Since they are simply aliases, I
don't see why bother put the duplication in the standard library. You can
even monkey patch if you want it in the 'math' namespace. I'd prefer a bare
'π' in my own code though.

On May 31, 2017 11:48 PM, "Serhiy Storchaka" <storchaka at gmail.com> wrote:

What you are think about adding Unicode aliases for some mathematic names
in the math module? ;-)

math.π = math.pi
math.τ = math.tau
math.Γ = math.gamma
math.ℯ = math.e

Unfortunately we can't use ∞, ∑ and √ as identifiers. :-(

_______________________________________________
Python-ideas mailing list
Python-ideas at python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170601/5b30c11b/attachment.html>


More information about the Python-ideas mailing list