martedì, settembre 23, 2014

How do you see the entire command history in interactive python?

Code for printing the entire history ():
import readline
for i in range(readline.get_current_history_length()):
    print readline.get_history_item(i)
From: http://stackoverflow.com/questions/6558765/how-do-you-see-the-entire-command-history-in-interactive-python

Nessun commento :

Posta un commento