Message398832
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. |
|
Date |
User |
Action |
Args |
2021-08-03 15:15:29 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, georg.brandl, xdegaye, eric.snow, josh.r, louielu, iritkatriel |
2021-08-03 15:15:28 | serhiy.storchaka | set | messageid: <1628003729.0.0.654796024989.issue20703@roundup.psfhosted.org> |
2021-08-03 15:15:28 | serhiy.storchaka | link | issue20703 messages |
2021-08-03 15:15:28 | serhiy.storchaka | create | |
|