[Python-ideas] π = math.pi

Nick Coghlan ncoghlan at gmail.com
Sun Jun 4 23:33:24 EDT 2017


On 5 June 2017 at 07:00, Guido van Rossum <gvanrossum at gmail.com> wrote:
> AFAK it was in whatever PEP introduced Unicode identifiers.

Ah, indeed it is: https://www.python.org/dev/peps/pep-3131/#policy-specification

Interestingly, that's stricter than my draft PR for PEP 8, and I'm not
entirely sure we follow the "string literals and comments must be in
ASCII" part in its entirety:

============
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.
============

That said, all the potential counter-examples that come to mind are in
the documentation, but *not* in the corresponding docstrings (e.g. the
Euro symbol used in in the docs for chr() and ord()).

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-ideas mailing list