readline in Mac OS X (10.3.5) Panther

Mac OS X (10.3.5) Panther does not ship with the readline library. (Apparently because readline is GPL'd). However, without it the Python interpreter is braindead (i.e. no command history). You can add the readline library (without preinstalling the MacPython Panther extensions ) with the following command:

sudo python `python -c “import pimp; print pimp.__file__”` -i readline

Thanks to Bob Ippolito, commenting on Bill Bumgarner's blog
.

Post a Comment

You must be logged in to post a comment.