[docs] [issue11988] special method lookup docs don't address some important details

Georg Brandl report at bugs.python.org
Tue May 3 23:19:21 CEST 2011


Georg Brandl <georg at python.org> added the comment:

Not sure I understand your issue here.  How should "1 in y" get at X.__contains__ given the special method lookup rules?  The __getattr__ is not called since y.__contains__ isn't looked up.

----------
nosy: +georg.brandl

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11988>
_______________________________________


More information about the docs mailing list