[Python-ideas] π = math.pi

Masayuki YAMAMOTO ma3yuki.8mamo10 at gmail.com
Thu Jun 1 10:08:27 EDT 2017


The width of Greek letters is East Asian Ambiguous. Using ambiguous width
characters possibly will be a reason that is source code layout break on
specific locale.

Masayuki

2017-06-01 15:47 GMT+09:00 Serhiy Storchaka <storchaka at gmail.com>:

> 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/3e05b1e0/attachment.html>


More information about the Python-ideas mailing list