This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Electro
Recipients Electro, akira, mark.dickinson, rhettinger
Date 2014-06-27.01:05:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403831114.37.0.106351751205.issue21873@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2014-06-27 01:05:14Electrosetrecipients: + Electro, rhettinger, mark.dickinson, akira
2014-06-27 01:05:14Electrosetmessageid: <1403831114.37.0.106351751205.issue21873@psf.upfronthosting.co.za>
2014-06-27 01:05:14Electrolinkissue21873 messages
2014-06-27 01:05:13Electrocreate