Tab-Complete and a Persistent History in Python

November 17, 2006 at 9:15 pm | Posted in python | 4 Comments

Earlier today, in #django on freenode, the topic of tab-complete in the python shell happened to come up – at first, I thought it wasn’t possible in standard python, and only in other python interpreters.

Thankfully, a link was posted with info on the readline and rlcomplete modules – at first, I couldn’t get their example working to load on startup, so upon further investigation, not only did I get that quirk worked out, but I stumbled across another module that lets you hook on start/exit to save/load a history file, much like bash.

Continue Reading Tab-Complete and a Persistent History in Python…

Create a free website or blog at WordPress.com.
Entries and comments feeds.