[Python-checkins] cpython (2.7): Issue #16182: Backport documentation of set_pre_input_hook() availability

martin.panter python-checkins at python.org
Tue Jun 14 05:02:06 EDT 2016


https://hg.python.org/cpython/rev/cff695a0b449
changeset: 102018:cff695a0b449
branch: 2.7
parent: 102000:5c8cddc4a8ee
user: Martin Panter <vadmium+py at gmail.com>
date: Tue Jun 14 08:45:43 2016 +0000
summary:
 Issue #16182: Backport documentation of set_pre_input_hook() availability
files:
 Doc/library/readline.rst | 3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst
--- a/Doc/library/readline.rst
+++ b/Doc/library/readline.rst
@@ -186,7 +186,8 @@
 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
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /