Re: [Python-ideas] Float nan equality

2016-10-04 Thread Nick Coghlan
On 4 October 2016 at 21:32, Arek Bulski wrote: > I had a bug where nan floats failed to compare equal because there seems to > be more than one nan value and comparison seems to be binary based. "NaN != NaN" is part of the definition of IEEE 754 floats: https://en.wikipedia.org/wiki/NaN#Floating

[Python-ideas] Float nan equality

2016-10-04 Thread Arek Bulski
I had a bug where nan floats failed to compare equal because there seems to be more than one nan value and comparison seems to be binary based. How about we make float eq test if both are math. Isnan? -- Arkadiusz Bulski -- ___ Python-ideas mailing lis