[issue17816] Weak*Dictionary KeyErrors during callbacks

Nils Bruin report at bugs.python.org
Mon Apr 22 20:23:53 CEST 2013


Nils Bruin added the comment:

Have you tried if the fix at issue7105 solves the problem? I don't see the patch there introduce a `clear` method override for WeakValueDictionary or WeakKeyDictionary. The one for WeakSet still calls self.data.clear(), which for dictionaries would still result in the problem in this ticket (but not for WeakSet, because clearing a WeakSet shouldn't decref anything other than the weak references stored in the underlying set).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17816>
_______________________________________


More information about the Python-bugs-list mailing list