mirror of https://github.com/python/cpython.git
added documentation for new functions {get,set}_history_length
This commit is contained in:
parent
49bd24d4e4
commit
7cb1524586
|
@ -42,6 +42,17 @@ Save a readline history file.
|
|||
The default filename is \file{\~{}/.history}.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{get_history_length}{}
|
||||
Return the desired length of the history file. Negative values imply
|
||||
unlimited history file size.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{set_history_length}{length}
|
||||
Set the number of lines to save in the history file.
|
||||
\func{write_history_file} uses this value to truncate the history file when
|
||||
saving. Negative values imply unlimited history file size.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{set_completer}{\optional{function}}
|
||||
Set or remove the completer function. The completer function is
|
||||
called as \code{\var{function}(\var{text}, \var{state})},
|
||||
|
|
Loading…
Reference in New Issue