[Python-ideas] π = math.pi
Serhiy Storchaka
storchaka at gmail.com
Sat Jun 3 14:39:41 EDT 2017
03.06.17 20:45, Brett Cannon пише:
> Since this regularly comes up, why don't we add a note to the math
> module that you can do the above import(s) to bind various mathematical
> constants to their traditional symbol counterparts? The note can even
> start off with something like "While Python's standard library only uses
> ASCII characters to maximize ease of use and contribution, individuals
> are allowed to use various Unicode characters for variable names." This
> would also help with making sure people don't come back later and say,
> "why don't you just add the constants to the module?"
Nice idea!
More information about the Python-ideas
mailing list