[issue40327] list(sys.modules.items()) can throw RuntimeError: dictionary changed size during iteration

Andrew Nelson report at bugs.python.org
Wed Aug 25 20:30:48 EDT 2021


Andrew Nelson <andyfaff at gmail.com> added the comment:

Just to mention that we have seen similar issues whilst importing scipy in a multiprocessing context.
See https://github.com/scipy/scipy/issues/11479 and https://stackoverflow.com/questions/68911221/python-runtimeerror-dictionary-changed-size-during-iteration-popping-out-rand.

----------
nosy: +Andrew Nelson

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40327>
_______________________________________


More information about the Python-bugs-list mailing list