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 Dennis Sweeney, idan57, terry.reedy
Date 2021-10-09.11:58:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633780708.64.0.671580449137.issue45353@roundup.psfhosted.org>
In-reply-to
Content
An example can be found here: https://github.com/python/cpython/commit/7058d2d96c5ca4dfc6c754c5cd737c6eb2a8fd67
https://bugs.python.org/issue13487

Those links are about an issue that was until March 2020 with how sys.modules is iterated. It is not safe to iterate over since it can get updated during the iteration because of lazy importing for example.

If you look in older reports you can find that there us an issue with iterating over it and it was not addressed yet at all.
History
Date User Action Args
2021-10-09 11:58:28idan57setrecipients: + idan57, terry.reedy, Dennis Sweeney
2021-10-09 11:58:28idan57setmessageid: <1633780708.64.0.671580449137.issue45353@roundup.psfhosted.org>
2021-10-09 11:58:28idan57linkissue45353 messages
2021-10-09 11:58:28idan57create