Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5068c87

Browse files
committed
Document readline module functions added in Python 2.3. See:
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.
1 parent 843c734 commit 5068c87

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Doc/lib/libreadline.tex

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,22 @@ \section{\module{readline} ---
6060
file size.
6161
\end{funcdesc}
6262

63+
\begin{funcdesc}{get_current_history_length}{}
64+
Return the number of lines currently in the history. (This is different
65+
from \function{get_history_length()}, which returns the maximum number of
66+
lines that will be written to a history file.) \versionadded{2.3}
67+
\end{funcdesc}
68+
69+
\begin{funcdesc}{get_history_item}{index}
70+
Return the current contents of history item at \var{index}.
71+
\versionadded{2.3}
72+
\end{funcdesc}
73+
74+
\begin{funcdesc}{redisplay}{}
75+
Change what's displayed on the screen to reflect the current contents
76+
of the line buffer. \versionadded{2.3}
77+
\end{funcdesc}
78+
6379
\begin{funcdesc}{set_startup_hook}{\optional{function}}
6480
Set or remove the startup_hook function. If \var{function} is specified,
6581
it will be used as the new startup_hook function; if omitted or

0 commit comments

Comments
 (0)