[Python-Dev] Deprecating "instance method" class
Jeroen Demeyer
J.Demeyer at UGent.be
Sun Apr 7 03:15:57 EDT 2019
More information about the Python-Dev mailing list
Sun Apr 7 03:15:57 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 ]
On 2019-04-07 09:48, Serhiy Storchaka wrote: > total_ordering monkeypatches the decorated class. I'm planning to > implement in C methods that implement __gt__ in terms of __lt__ etc. Yes, I understood that. I'm just saying: if you want to make it fast, that's not the best solution. The fastest would be to implement tp_richcompare from scratch (instead of relying on slot_tp_richcompare dispatching to methods).
- 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