[Python-ideas] float('∞')=float('inf')
Philipp A.
flying-sheep at web.de
Mon Jul 15 14:17:02 CEST 2013
2013/7/15 Joshua Landau <joshua at landau.ws>
> I even tend to use "thing is Ellipses" instead of "thing is ..."
> because it reads better -- "thing == ∞" just goes back to that.
>
At least “...” is correct, while “Ellips*e*s” isn’t. it’s “Ellips*i*s”.
but as said: ∞ can be in data, and other than e.g. π, it unambiguously and
always means the same as “infinity”. there is a reason why float accepts
“inf(inity)” and “NaN”, but no other prose. float() imho should accept all
literals for values it can represent, and ∞ is just a symbol and therefore
synonym for “infinity”. if there would be a symbol for NaN, i’d propose to
include it as well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130715/617cff18/attachment.html>
More information about the Python-ideas
mailing list