diff options
author | Guido van Rossum <guido@python.org> | 2001-10-19 01:18:43 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-10-19 01:18:43 (GMT) |
commit | b6c1d5239cfeadd761d2055cc44212f7a6b7e5af (patch) | |
tree | 260289f4d9c056f7c0499ad906876fc8539c4f18 /Doc | |
parent | a660a34844f55dc2400a6ef6f2055b239b0aede7 (diff) | |
download | cpython-b6c1d5239cfeadd761d2055cc44212f7a6b7e5af.zip cpython-b6c1d5239cfeadd761d2055cc44212f7a6b7e5af.tar.gz cpython-b6c1d5239cfeadd761d2055cc44212f7a6b7e5af.tar.bz2 |
SF patch #443759: Add Interface to readline's add_history
This was submitted by Moshe, but apparently he's too busy to check it
in himself. He wrote:
Here is a function in GNU readline called add_history,
which is used to manage the history list. Though Python
uses this function internally, it does not expose it to
the Python programmer. This patch adds direct interface
to this function with documentation.
This could be used by friendly modules to "seed" the
history with commands.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libreadline.tex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/lib/libreadline.tex b/Doc/lib/libreadline.tex index 7350845..3988052 100644 --- a/Doc/lib/libreadline.tex +++ b/Doc/lib/libreadline.tex @@ -96,6 +96,10 @@ Set the readline word delimiters for tab-completion. Get the readline word delimiters for tab-completion. \end{funcdesc} +\begin{funcdesc}{add_history}{line} +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 |