[Python-ideas] π = math.pi

Antoine Rozo antoine.rozo at gmail.com
Thu Jun 1 03:54:17 EDT 2017


Does this really make expressions more readable?
More, these characters are difficult to write.

2017-06-01 9:53 GMT+02:00 Stephan Houben <stephanh42 at gmail.com>:

> Tau was kind of a joke.
>
> Stephan
>
> Op 1 jun. 2017 09:47 schreef "Serhiy Storchaka" <storchaka at gmail.com>:
>
> 01.06.17 10:03, David Mertz пише:
>
> It's awfully easy to add in your own code. Since they are simply aliases,
>> I don't see why bother put the duplication in the standard library. You can
>> even monkey patch if you want it in the 'math' namespace. I'd prefer a bare
>> 'π' in my own code though.
>>
>
> As well as adding tau = 2*math.pi in your own code. But this deserved the
> whole PEP and was added as a feature in 3.6.
>
>
> _______________________________________________
> 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/
>
>
>
> _______________________________________________
> 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/
>
>


-- 
Antoine Rozo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170601/8ef51273/attachment-0001.html>


More information about the Python-ideas mailing list