[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
- Previous message: [Python-Dev] operator precedence of __eq__, __ne__, etc, if both object have implementations
- Next message: [Python-Dev] operator precedence of __eq__, __ne__, etc, if both object have implementations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] operator precedence of __eq__, __ne__, etc, if both object have implementations
- Next message: [Python-Dev] operator precedence of __eq__, __ne__, etc, if both object have implementations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]