diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-06-14 08:45:43 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-06-14 08:45:43 (GMT) |
commit | 6afbc653a7bba73ecc56a6ba37632d25376dbe2f (patch) | |
tree | bcec120a14051455328b70343121cf89171a2169 /Doc/library/readline.rst | |
parent | 11a693d3304eb896de35733848b5bd9f2b5b4ab5 (diff) | |
download | cpython-6afbc653a7bba73ecc56a6ba37632d25376dbe2f.zip cpython-6afbc653a7bba73ecc56a6ba37632d25376dbe2f.tar.gz cpython-6afbc653a7bba73ecc56a6ba37632d25376dbe2f.tar.bz2 |
Issue #16182: set_pre_input_hook() may not exist; document, and update test
Diffstat (limited to 'Doc/library/readline.rst')
-rw-r--r-- | Doc/library/readline.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst index e17e69c..4d3c099 100644 --- a/Doc/library/readline.rst +++ b/Doc/library/readline.rst @@ -104,7 +104,9 @@ The following functions operate on a history file: Append the last *nelements* items of history to a file. The default filename is :file:`~/.history`. The file must already exist. This calls - :c:func:`append_history` in the underlying library. + :c:func:`append_history` in the underlying library. This function + only exists if Python was compiled for a version of the library + that supports it. .. versionadded:: 3.5 @@ -185,7 +187,8 @@ Startup hooks be used as the new hook function; if omitted or ``None``, any function already installed is removed. The hook is called with no arguments after the first prompt has been printed and just before - readline starts reading input characters. + readline starts reading input characters. This function only exists + if Python was compiled for a version of the library that supports it. Completion |