Lines Matching refs:history
13 completion and reading/writing of history files from the Python interpreter.
94 The following functions operate on a history file:
99 Load a readline history file, and append it to the history list.
100 The default filename is :file:`~/.history`. This calls
106 Save the history list to a readline history file, overwriting any
107 existing file. The default filename is :file:`~/.history`. This calls
113 Append the last *nelements* items of history to a file. The default filename is
114 :file:`~/.history`. The file must already exist. This calls
125 Set or return the desired number of lines to save in the history file.
127 the history file, by calling :c:func:`history_truncate_file` in
129 unlimited history file size.
135 The following functions operate on a global history list:
140 Clear the current history. This calls :c:func:`clear_history` in the
147 Return the number of items currently in the history. (This is different from
149 be written to a history file.)
154 Return the current contents of history item at *index*. The item index
160 Remove history item specified by its position from the history.
167 Replace history item specified by its position with *line*.
174 Append *line* to the history buffer, as if it was the last line typed.
182 that when true, enables auto history, and that when false, disables
183 auto history.
188 Auto history is enabled by default, and changes to this do not persist
293 history reading and writing functions to automatically load and save a history
305 # default history len is -1 (infinite), which may grow unruly
316 sessions, by only appending the new history. ::
337 support history save/restore. ::
346 histfile=os.path.expanduser("~/.console-history")):