[Python-Dev] operator precedence of __eq__, __ne__, etc, if both object have implementations

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Sep 24 02:44:33 CEST 2009

Nick Coghlan wrote:

> The interpreter doesn't promise to call those slots with "self" first -
> self will be the second argument in the "rop" case.

I know. My question is: How does it know whether a subclass
"has overridden __rop__" when there is no concept of an
__rop__ method distinct from the __op__ method?


More information about the Python-Dev mailing list