[Python-ideas] Suggestion: Extend integers to include iNaN
storchaka at gmail.com
Sat Sep 29 04:56:59 EDT 2018
29.09.18 11:43, Steve Barnes пише:
> On 29/09/2018 08:50, Serhiy Storchaka wrote:
>> Python is dynamically typed language. What is such processing that would
>> work with iNaN, but doesn't work with float('nan')?
> One simplistic example would be print(int(float('nan'))) (gives a
> ValueError) while print(int(iNaN)) should give 'nan' or maybe 'inan'.
Why do you convert to int when you need a string representation? Just
More information about the Python-ideas