[Python-ideas] float('∞')=float('inf')

Joshua Landau joshua at landau.ws
Mon Jul 15 15:20:52 CEST 2013


On 15 July 2013 13:17, Philipp A. <flying-sheep at web.de> wrote:
> 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 “Ellipses” isn’t. it’s “Ellipsis”.

;). That's why I use autocomplete.

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


More information about the Python-ideas mailing list