Readline for python on OSX

Was trying to use python interactively on the command line in OSX 10.4, and realized it didn’t have readline support (up arrow command history in interative python shell). Fortunately, google turned up the answer here. To summarize, running the following command in a terminal did the trick.

python `python -c import pimp; print pimp.file` -i readline

One Response to “Readline for python on OSX”

  1. blog.sudosu.net - Google FTW: Fixing Arrow Problems in OS X Python Says:

    […] my own, by selecting different emulation types. Finally I Googled for it. And pretty much instantly found the answer: python `python -c “import pimp; print pimp.__file__”` -i […]

Leave a Reply