[issue7105] weak dict iterators are fragile because of unpredictable GC runs

Kristján Valur Jónsson report at bugs.python.org
Mon Dec 2 00:04:43 CET 2013


Kristján Valur Jónsson added the comment:

Here's a different approach.
Simply avoid the use of iterators over the underlying container.
Instead, we iterate over lists of items/keys/values etc.

----------
Added file: http://bugs.python.org/file32932/weakref.patch

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


More information about the Python-bugs-list mailing list