]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document readline module functions added in Python 2.3. See:
authorPhillip J. Eby <pje@telecommunity.com>
Tue, 4 May 2004 19:27:35 +0000 (19:27 +0000)
committerPhillip J. Eby <pje@telecommunity.com>
Tue, 4 May 2004 19:27:35 +0000 (19:27 +0000)
http://mail.python.org/pipermail/python-dev/2003-September/037922.html

for background.  It appears I forgot to ever submit a bug report or patch.

Doc/lib/libreadline.tex

index d428594973f5d2af46a76dcb6d5f3a3400e3c68a..d84096dd0d9b51787fe34c8ae06224ecf0a4d781 100644 (file)
@@ -54,6 +54,22 @@ history file when saving.  Negative values imply unlimited history
 file size.
 \end{funcdesc}
 
+\begin{funcdesc}{get_current_history_length}{}
+Return the number of lines currently in the history.  (This is different
+from \function{get_history_length()}, which returns the maximum number of
+lines that will be written to a history file.)  \versionadded{2.3}
+\end{funcdesc}
+
+\begin{funcdesc}{get_history_item}{index}
+Return the current contents of history item at \var{index}.
+\versionadded{2.3}
+\end{funcdesc}
+
+\begin{funcdesc}{redisplay}{}
+Change what's displayed on the screen to reflect the current contents
+of the line buffer.  \versionadded{2.3}
+\end{funcdesc}
+
 \begin{funcdesc}{set_startup_hook}{\optional{function}}
 Set or remove the startup_hook function.  If \var{function} is specified,
 it will be used as the new startup_hook function; if omitted or