ActiveState Powered by ActiveState

ActiveState Community


line editing

Why doesn't ActivePython use GNU readline?

Question:

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

Answer:

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.

We are working on solutions to this, but in the meantime you can get a very friendly front-end to the Python shell via Komodo. If Komodo is overkill for what you need, consider Pyrepl, which gives you only a more pleasant front-end, rather than a whole IDE. Pyrepl is not an ActiveState product so we can't provide support for it, but it may be what you want if you want to keep it simple.

-->