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 serhiy.storchaka
Recipients eric.snow, georg.brandl, iritkatriel, josh.r, louielu, serhiy.storchaka, xdegaye
Date 2021-08-03.15:15:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628003729.0.0.654796024989.issue20703@roundup.psfhosted.org>
In-reply-to
Content
My concern about importing readline at the top of the module is that importing readline has a side effect. The only module which imports it unconditionally at the top is rlcompleter. In all other places it is imported lazily.

And importing readline ahead may not fix the original issue, because there are other modules lazily imported in pdb: runpy, shlex, pydoc.

Perhaps we should just say that sys.modules should not be iterated directly, you should first make a copy. There are other issues about RuntimeError raised during iterating sys.modules.
History
Date User Action Args
2021-08-03 15:15:29serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, xdegaye, eric.snow, josh.r, louielu, iritkatriel
2021-08-03 15:15:28serhiy.storchakasetmessageid: <1628003729.0.0.654796024989.issue20703@roundup.psfhosted.org>
2021-08-03 15:15:28serhiy.storchakalinkissue20703 messages
2021-08-03 15:15:28serhiy.storchakacreate