Baffled by readline module

Chris Angelico rosuav at gmail.com
Thu Mar 9 20:57:48 EST 2023


On Fri, 10 Mar 2023 at 12:56, Greg Ewing via Python-list
<python-list at python.org> wrote:
>
> On 10/03/23 1:46 pm, Grant Edwards wrote:
> > That's not how it acts for me. I have to "import readline" to get
> > command line recall and editing.
>
> Maybe this has changed? Or is platform dependent?
>
> With Python 3.8 on MacOSX I can use up arrow with input()
> to recall stuff I've typed before, without having to
> import anything.
>

import sys; "readline" in sys.modules

Is it? Might be that something's pre-importing it.

ChrisA


More information about the Python-list mailing list