[issue13667] __contains__ method behavior

Alex Gaynor report at bugs.python.org
Wed Dec 28 21:31:29 CET 2011


Alex Gaynor <alex.gaynor at gmail.com> added the comment:

For what it's worth I proposed this on -ideas a while ago, the sticking points were what does `not in` do (no one had an answer anyone was happy with for this), and do we need a way to override it from the other perspective (e.g. if I want to do `SpecialObj() in [1, 2, 3]`, is there a way to do that?).

----------
nosy: +alex

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


More information about the Python-bugs-list mailing list