I\'d like to be able to \"up-arrow\" to commands that I input in a previous Python interpreter. I have found the readline module which offers functions like:
I think the suggestions in the Python documentation pretty much cover what you want. Look at the example pystartup file toward the end of section 13.3:
or see this page:
But, for an out of the box interactive shell that provides all this and more, take a look at using IPython: