This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author idan57
Recipients idan57
Date 2021-10-03.14:36:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633271811.32.0.73963856747.issue45353@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-10-03 14:36:51idan57setrecipients: + idan57
2021-10-03 14:36:51idan57setmessageid: <1633271811.32.0.73963856747.issue45353@roundup.psfhosted.org>
2021-10-03 14:36:51idan57linkissue45353 messages
2021-10-03 14:36:51idan57create