Django
History
History for shell-plus, same as python:
- Python 2
import readline
for i in range(readline.get_current_history_length()):
print readline.get_history_item(i + 1)
- Python 3
import readline
for i in range(readline.get_current_history_length()):
print (readline.get_history_item(i + 1))