◐ Shell
clean mode source ↗

Message 289518 - Python tracker

-----

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()

... ... ...