mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Issue #16182: set_pre_input_hook() may not exist; document, and update test
This commit is contained in:
parent
11a693d330
commit
6afbc653a7
2 changed files with 20 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue