[issue16011] "in" should be consistent with return value of __contains__
R. David Murray
report at bugs.python.org
Tue Feb 7 20:09:23 EST 2017
R. David Murray added the comment:
Eric: that is not precise enough, I'm afraid :) See msg171093 for the correct documentation update. Specifically, in returns True if __contains__ returns a true value, and False otherwise (not the difference in case, it matters). There are more things than just None, False, and 0 that are false in Python.
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16011>
_______________________________________
More information about the Python-bugs-list
mailing list