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

Antoine Pitrou report at bugs.python.org
Mon Nov 18 21:11:32 CET 2013


Antoine Pitrou added the comment:

> Btw, I think a cleaner way to deal with unpredictable GC runs is to be able to temporarily disable GC with a context manager

Disabling the GC in a library function sounds very ugly to me.

----------

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


More information about the Python-bugs-list mailing list