05.04.19 20:56, Jeroen Demeyer ????: > On 2019-04-05 19:53, Serhiy Storchaka wrote: >> At Python level we can monkeypatch __gt__, but not tp_richcompare. > > Sure, but you're planning to use C anyway so that's not really an argument. total_ordering monkeypatches the decorated class. I'm planning to implement in C methods that implement __gt__ in terms of __lt__ etc.