Message289518
-----
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()
... ... ... |
|
Date |
User |
Action |
Args |
2017-03-13 00:35:06 | ppperry | set | recipients:
+ ppperry, tim.peters, vstinner, serhiy.storchaka, eryksun, mdk, elliot.gorokhovsky |
2017-03-13 00:35:06 | ppperry | link | issue28685 messages |
2017-03-13 00:35:06 | ppperry | create | |
|