[docs] [issue22052] Comparison operators called in reverse order for subclasses with no override.

R. David Murray report at bugs.python.org
Thu Jul 24 00:22:09 CEST 2014


R. David Murray added the comment:

"the subclass provides" doesn't actually imply anything about overriding, I think.  For __eq__, though, that means that *every* class "provides" it.  Indeed, I've always thought of the rule as "the subclass goes first" with no qualification, but that's only true for __eq__.

It looks like the "subclass goes first" note is missing from the __eq__ section.

But see issue 21408.  I find it hard to reason about this algorithm, so I could be completely wrong :)

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22052>
_______________________________________


More information about the docs mailing list