mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Add get_history_item and replace_history_item functions to the readline
module. Closes patch #675551. My apologies to Michal Vitecek for taking so long to process this.
This commit is contained in:
parent
f0d5f7917e
commit
e5069019e7
3 changed files with 85 additions and 3 deletions
|
@ -71,6 +71,16 @@ Return the current contents of history item at \var{index}.
|
|||
\versionadded{2.3}
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{remove_history_item}{pos}
|
||||
Remove history item specified by its position from the history.
|
||||
\versionadded{2.4}
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{replace_history_item}{pos, line}
|
||||
Replace history item specified by its position with the given line.
|
||||
\versionadded{2.4}
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{redisplay}{}
|
||||
Change what's displayed on the screen to reflect the current contents
|
||||
of the line buffer. \versionadded{2.3}
|
||||
|
@ -127,7 +137,6 @@ Get the readline word delimiters for tab-completion.
|
|||
Append a line to the history buffer, as if it was the last line typed.
|
||||
\end{funcdesc}
|
||||
|
||||
|
||||
\begin{seealso}
|
||||
\seemodule{rlcompleter}{Completion of Python identifiers at the
|
||||
interactive prompt.}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue