Is there a way to tell the interactive Python shell to preserve its history of executed commands between sessions?
While a session is running, after commands have be
Use IPython.
You should, anyway, because it's awesome: persistent command history is just one of the many many ways it's better than the stock Python shell.