From fc0a55fed902adb668d72af41530e2f2c93e90b4 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Tue, 14 Jun 2016 08:45:43 +0000 Subject: [PATCH] Issue #16182: Backport documentation of set_pre_input_hook() availability --- Doc/library/readline.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst index a0ed89eba1..94e5e101eb 100644 --- a/Doc/library/readline.rst +++ b/Doc/library/readline.rst @@ -186,7 +186,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 -- 2.50.1