Serhiy Storchaka <[email protected]> added the comment:
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.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue20703>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com