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

Antoine Pitrou report at bugs.python.org
Tue Nov 19 11:39:12 CET 2013


Antoine Pitrou added the comment:

Speaking of which, this is not only about GC runs, although it is the most annoying scenario (since you basically don't control when it happens). Regular resource reaping because of reference counting can also wreak havoc.

About the patch, I don't know. It introduces new complexity in 2.7 which should be fairly stable by now. The one thing I don't like is your replacement of "iterator" by "iterable" in the docs.

(you also have one line commented out in the tests)

----------

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


More information about the Python-bugs-list mailing list