Idan Cohen <ida...@gmail.com> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45353> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com