[Python-Dev] operator precedence of eq, ne, etc, if both object have implementations (original) (raw)

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?

-- Greg



More information about the Python-Dev mailing list