[Python-Dev] Deprecating "instance method" class
Serhiy Storchaka
storchaka at gmail.com
Sun Apr 7 03:48:45 EDT 2019
More information about the Python-Dev mailing list
Sun Apr 7 03:48:45 EDT 2019
- Previous message (by thread): [Python-Dev] Deprecating "instance method" class
- Next message (by thread): [Python-Dev] Deprecating "instance method" class
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): [Python-Dev] Deprecating "instance method" class
- Next message (by thread): [Python-Dev] Deprecating "instance method" class
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list