PYTHON readline_list_history

is this article helpful?
Python replacement for PHP's readline_list_history [ edit | history ]
import readline
[readline.get_history_item(i) for i in range(readline.get_current_history_length())]

PHP readline_list_history

PHP original manual for readline_list_history [ show | ]


(PHP 4, PHP 5)

readline_list_historyLists the history


array readline_list_history ( void )

Gets the entire command line history.

Return Values

Returns an array of the entire command line history. The elements are indexed by integers starting at zero.