Tuesday, August 30, 2005

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

1 comment:

  1. [...] 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 [...]

    ReplyDelete