List of methods affected by 'Special method lookup'
Roberto Martínez
robertomartinezp at gmail.com
Mon Jan 28 11:14:33 EST 2019
Hi,
the documentation about Special method lookup
<https://docs.python.org/3/reference/datamodel.html#special-method-lookup>
claims:
"For custom classes, implicit invocations of special methods are only
guaranteed to work correctly if defined on an object’s type, not in the
object’s instance dictionary. "
Does this statement holds for every special method mentioned in section 3.3
Special method names
<https://docs.python.org/3/reference/datamodel.html#special-method-names>?
Best regards,
Roberto
More information about the Python-list
mailing list