[Python-ideas] π = math.pi

Erik Bray erik.m.bray at gmail.com
Fri Jun 2 03:46:56 EDT 2017


On Fri, Jun 2, 2017 at 7:52 AM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Victor Stinner wrote:
>>
>> How do you write π (pi) with a keyboard on Windows, Linux or macOS?
>
>
> On a Mac, π is Option-p and ∑ is Option-w.

I don't have a strong opinion about it being in the stdlib, but I'd
also point out that a strong advantage to having these defined in a
module at all is that third-party interpreters (e.g. IPython, bpython,
some IDEs) that support tab-completion make these easy to type as
well, and I find them to be very readable for math-heavy code.


More information about the Python-ideas mailing list