T
Tim Peters
[Mel Wilson]
See the Python (language, not library) reference manual, section 3.3.8
("Coercion rules"), bullet point starting with:
Exception to the previous item: if the left operand is an
instance of a built-in type or a new-style class, and the right
operand is an instance of a proper subclass of that type or
class, ...
Seems to:
Python 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.... def __eq__(self, other):
... return True
...... def __eq__(self, other):
... print "(according to Neq)"
... return False
...(according to Neq)
False(according to Neq)
False
See the Python (language, not library) reference manual, section 3.3.8
("Coercion rules"), bullet point starting with:
Exception to the previous item: if the left operand is an
instance of a built-in type or a new-style class, and the right
operand is an instance of a proper subclass of that type or
class, ...