23/09/14

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