mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Patch #800697: Add readline.clear_history.
This commit is contained in:
parent
c6bb6c0f8c
commit
e7a9796a0f
3 changed files with 29 additions and 0 deletions
|
@ -42,6 +42,12 @@ Save a readline history file.
|
|||
The default filename is \file{\~{}/.history}.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{clear_history}{}
|
||||
Clear the current history. (Note: this function is not available if
|
||||
the installed version of GNU readline doesn't support it.)
|
||||
\versionadded{2.4}
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{get_history_length}{}
|
||||
Return the desired length of the history file. Negative values imply
|
||||
unlimited history file size.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue