On Thu, Jun 1, 2017 at 9:47 AM, Serhiy Storchaka <storch...@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. :-(
>

If this were to happen, I would only add π and forget about the
others. It is the only one that is nearly 100 percent unambiguous. And
seeing that in code or listed in math or builtins might have a nice
wow factor to some. If π were in builtins, it might actually be useful
as being more readable and faster to type than math.pi or np.pi. As
math.π, I'm not sure it's worth it, although less harmful than
math.tau.

In IPython/Jupyter, you can type \pi + tab, and you'll get π. This
even works on command line!

-- Koos (mobile)
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to