raw_input() and readline

Moshe Zadka moshez at server.python.net
Sun Sep 5 01:46:44 EDT 1999


[Moshe Zadka finds raw_input() inside a script has no line-editing]

[Jeff Blaine]
> Did you 'import readline' ?

No I didn't, and doing it fixed it.
What threw me off is that inside the interpreter, it worked fine. The
documentation of raw_input should state that "readline functionality
available" means "readline has been imported", not "import readline is not
an error". I'll patch it soon.





More information about the Python-list mailing list