[Python-Dev] Mixing float and Decimal -- thread reboot

Nick Coghlan ncoghlan at gmail.com
Thu Mar 25 12:25:35 CET 2010

Steven D'Aprano wrote:
> I'd like to turn the question around ... what algorithms are there that 
> rely on NaN == NaN being True?

Absolutely anything that expects "x is y" to imply that "x == y". The
builtin containers enforce this by checking identity before they check
equality, but there are plenty of algorithms that won't.


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-Dev mailing list