[Python-ideas] math.inf and math.nan constants
Mark Young
marky1991 at gmail.com
Wed Jan 7 14:49:32 CET 2015
So with the proposal, you'd likely do something like
from math import nan, inf
Couldn't you just instead put
nan, inf = float("nan"), float("inf")
at the top of your script? I don't really think this is any more verbose
than an import from the math module. (Unless you're already doing an import
star from math)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150107/ccf2607b/attachment-0001.html>
More information about the Python-ideas
mailing list