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:
readline
Persistent history has been supported out of the box since Python 3.4. See this bug report.