[Python-Dev] Deprecating "instance method" class
Serhiy Storchaka
storchaka at gmail.com
Sun Apr 7 03:48:45 EDT 2019
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.
More information about the Python-Dev
mailing list