[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors
Tres Seaver
report at bugs.python.org
Mon Nov 8 15:12:43 CET 2010
New submission from Tres Seaver <tseaver at agendaless.com>:
Because application code which tests for the presence of
an object in a WeakSet may not be able to ensure that the
object is weak-referenceable, the set should just return
False for any object passed to '__contains__' which causes
'ref' to raise a TypeError.
Patch forthcoming.
----------
messages: 120743
nosy: tseaver
priority: normal
severity: normal
status: open
title: _weakrefset.WeakSet.__contains__ should not propagate TypeErrors
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10360>
_______________________________________
More information about the Python-bugs-list
mailing list