Message398727
Having a side effect at import time is not good. It will interfere with programs which just import pdb, but not use it.
There are two other options:
1. Import readline at top level, but call set_completer_delims() lazily.
2. Do not import readline at all. Call set_completer_delims() only if readline is already imported (sys.modules.get('readline') is not None).
I prefer the latter one. |
|
Date |
User |
Action |
Args |
2021-08-02 06:11:15 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, georg.brandl, xdegaye, eric.snow, josh.r, louielu, iritkatriel |
2021-08-02 06:11:15 | serhiy.storchaka | set | messageid: <1627884675.28.0.104351902916.issue20703@roundup.psfhosted.org> |
2021-08-02 06:11:15 | serhiy.storchaka | link | issue20703 messages |
2021-08-02 06:11:15 | serhiy.storchaka | create | |
|