New submission from Idan Cohen :
Hi,
When iterating over sys.modules it might be that because of lazy loading or
that other module reload is being reloaded (even if sys.modules.copy() is being
used) you will get:
"RuntimeError: dictionary changed size during iteration"
The usage of sys.modules and iteration over it is used in many places
I know that this is a known issue but didn't find any solution or fix for that.
Also, if there is some work around that might solve this, I would appreciate it.
Thanks,
Idan
--
components: Library (Lib)
messages: 403089
nosy: idan57
priority: normal
severity: normal
status: open
title: sys.modules: dictionary changed size during iteration
versions: Python 3.8
___
Python tracker
<https://bugs.python.org/issue45353>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com