Ben Avrahami <avrahami....@gmail.com> added the comment:

> Maybe you misunderstand what I tried to say?

Possibly, right now, total_ordering avoids overriding any method that is 
declared, either in the class or its superclasses (except for object), 
regardless of whether or not it is abstract. For it to be ABC-aware, it would 
need the ability to override abstract methods defined in superclasses, so we 
need to check whether an exisitng method is abstract.

Additionally we want to not override abstract methods defined in the subject 
class, so we also need to check whether the method is defined in the class 
__dict__ (that's the extra logic I was referring to).

An argument could be made that total_ordering should override any method not 
defined in the subject class, abstract or no (implementing this logic would 
also speed up total_ordering, but that's beside the point).

Is this what you meant?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41905>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to