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-02.06:11:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627884675.28.0.104351902916.issue20703@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-08-02 06:11:15serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, xdegaye, eric.snow, josh.r, louielu, iritkatriel
2021-08-02 06:11:15serhiy.storchakasetmessageid: <1627884675.28.0.104351902916.issue20703@roundup.psfhosted.org>
2021-08-02 06:11:15serhiy.storchakalinkissue20703 messages
2021-08-02 06:11:15serhiy.storchakacreate