[Python-ideas] π = math.pi

Stephan Houben stephanh42 at gmail.com
Thu Jun 1 05:32:38 EDT 2017


Hi Serhiy,

> math.π is a kind of joke too.

The point is that tau, being a joke, should not be considered as
setting a precedent.

> Honest, it is strange, that Python allows Unicode identifiers, but doesn't
> have the one in its stdlib!

Actually it is policy:

https://www.python.org/dev/peps/pep-3131/#policy-specification

"""
Policy Specification

As an addition to the Python Coding style, the following policy is
prescribed: All identifiers in the Python standard library MUST use
ASCII-only identifiers, and SHOULD use English words wherever feasible
(in many cases, abbreviations and technical terms are used which
aren't English). In addition, string literals and comments must also
be in ASCII. The only exceptions are (a) test cases testing the
non-ASCII features, and (b) names of authors. Authors whose names are
not based on the Latin alphabet MUST provide a Latin transliteration
of their names.
"""

Stephan



2017-06-01 10:06 GMT+02:00 Serhiy Storchaka <storchaka at gmail.com>:
> 01.06.17 10:53, Stephan Houben пише:
>>
>> Tau was kind of a joke.
>
>
> math.π is a kind of joke too.
>
> Honest, it is strange, that Python allows Unicode identifiers, but doesn't
> have the one in its stdlib!
>
>
> _______________________________________________
> 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/


More information about the Python-ideas mailing list