Neal Parikh added the comment:
I don't, but thanks for passing that along.
--
___
Python tracker
<http://bugs.python.org/issue16011>
___
___
Python-bugs-l
Neal Parikh added the comment:
Thanks for passing along the thread, it was interesting. Oddly, it seemed to
die off with no real resolution.
I realize it is now too late to change __contains__ to return a non-boolean
value, but for reference, the reason I wanted to return something different
New submission from Neal Parikh:
The Python 2.7.3 documentation says the following about defining __contains__:
"Called to implement membership test operators. Should return true if item is
in self, false otherwise. For mapping objects, this should consider the keys of
the mapping rather