[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors
Tres Seaver
report at bugs.python.org
Mon Nov 8 18:20:21 CET 2010
Tres Seaver <tseaver at agendaless.com> added the comment:
WeakKeyDictionary's __contains__:
def __contains__(self, key):
try:
wr = ref(key)
except TypeError:
return 0
return wr in self.data
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10360>
_______________________________________
More information about the Python-bugs-list
mailing list