NaN comparisons - Call For Anecdotes

Anders J. Munch 2014 at jmunch.dk
Tue Jul 8 20:54:06 CEST 2014


Ian Kelly wrote:
> As far as I know nothing changed between 2.4 and 2.7 in this regard.
> Python has always had NaN compare unequal to everything, per the
> standard.
It might have been platform-specific in 2.4.

> Okay, here's your problem: there isn't just one binary representation
> for NaN.
I'm fully aware of that. Whether NaN's are one equivalence class or several is 
not the issue. What matters is the integrity of the equivalence relation.

> Following the standard isn't a good reason itself? 

If a standard tells you to jump of a cliff...

regards, Anders




More information about the Python-list mailing list