Author ppperry
Recipients elliot.gorokhovsky, eryksun, mdk, ppperry, serhiy.storchaka, tim.peters, vstinner
Date 2017-03-13.00:35:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <5b48ba352872fce6026ef05c227d24a5.squirrel@neptune.place.org>
In-reply-to <CANZJz4hc2=f56pvfK0_h+3JDW6DoDVrU_8G+LCJ4Dx5=n5PteQ@mail.gmail.com>
Content
-----

Doesn't youre skipping PyObject_RichCompareBool and directly getting
tp_richcompare also mean that you bypass the NotImplemented checking?
Thus, wouldn't this code, which raises a TypeError currently, silently
work?

    class PointlessComparator:
        def __lt__(self, other):
            return NotImplemented
    [PointlessComparator(),PointlessComparator()].sort()

... ... ...
History
Date User Action Args
2017-03-13 00:35:06ppperrysetrecipients: + ppperry, tim.peters, vstinner, serhiy.storchaka, eryksun, mdk, elliot.gorokhovsky
2017-03-13 00:35:06ppperrylinkissue28685 messages
2017-03-13 00:35:06ppperrycreate