[issue7105] weak dict iterators are fragile because of unpredictable GC runs
Guido van Rossum
report at bugs.python.org
Mon Dec 2 01:19:31 CET 2013
Guido van Rossum added the comment:
I appreciate the simplicity, but I don't think it is acceptable -- if the dict is large, materializing the entire list of keys/values/items might allocate a prohibitive amount of memory. It's worse if you have code that is expected to break out of the loop.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7105>
_______________________________________
More information about the Python-bugs-list
mailing list