[issue16011] "in" should be consistent with return value of __contains__

2012-09-24 Thread Neal Parikh
Neal Parikh added the comment: I don't, but thanks for passing that along. -- ___ Python tracker <http://bugs.python.org/issue16011> ___ ___ Python-bugs-l

[issue16011] "in" should be consistent with return value of __contains__

2012-09-24 Thread Neal Parikh
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

[issue16011] "in" should be consistent with return value of __contains__

2012-09-23 Thread Neal Parikh
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