[issue4296] Python assumes identity implies equivalence; contradicts NaN

Mark Dickinson report at bugs.python.org
Tue Nov 11 15:46:22 CET 2008


Mark Dickinson <dickinsm at gmail.com> added the comment:

With the lines Raymond mentions restored, all tests (including the extra 
tests Christian's posted here) pass for me, and I also get:

>>> a = [float('nan')]
>>> a == a
True

Incidentally, it looks as though the PyObject_RichCompareBool lines were 
removed in r51533.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4296>
_______________________________________


More information about the Python-bugs-list mailing list