Why doesn't ActivePython use GNU readline?

Posted by kevinw on 2006-07-10 14:29

Why doesn't ActivePython use GNU readline? Why doesn't my up-arrow key recall past commands?


If you've used a Python.org build of Python before starting to use ActivePython, you may have grown fond of the command history and editing provided by the use of libreadline. Where Python.org Python gives you the last line you entered when you hit up-arrow, ActivePython gives you ^[[A.

ActivePython includes a package manager called PyPM using which you may install readline to make the arrow keys work:

$ pypm install readline

We do not include readline by default in the ActivePython distribution due to licensing restrictions.

stoune | Mon, 2008-02-25 15:53

I'm think a suggestion of using Pyrepl now is outdated. There is existed good alternative command interpreter which is actively developed. It is a iPython iPython (http://ipython.scipy.org/moin/).

sridharr | Thu, 2010-01-07 15:51

Point noted; and updated the FAQ entry above.

To get IPython with syntax highlighting and auto completion, do this on Windows:

C:\> pypm install pyreadline ipython

.. and on Mac/Linux:

$ pypm install ipython