Mak Nazečić-Andrlon added the comment:

It's not about equality.

    >>> class A: pass
    ... 
    >>> (float("nan"), A()) < (float("nan"), A())
    False

That < comparison should throw a TypeError, since NaN < NaN is False, in the 
same way that 0 < 0 is False here:

>>> (0, A()) < (0, A())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unorderable types: A() < A()

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21873>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to