]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-48752: Add readline.get_pre_input_hook() function (#141586)
authorSanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
Fri, 5 Dec 2025 12:18:54 +0000 (07:18 -0500)
committerGitHub <noreply@github.com>
Fri, 5 Dec 2025 12:18:54 +0000 (13:18 +0100)
commit4238a975d78a0cc8f1751cfc63b3030b94b46aa8
tree55d90bc2e5268770f339045ddc44f2db60072e62
parent53ec7c8fc07eb6958869638a0cad70c52ad6fcf5
gh-48752: Add readline.get_pre_input_hook() function (#141586)

Add readline.get_pre_input_hook() to retrieve the current pre-input
hook. This allows applications to save and restore the hook without
overwriting user settings.
Doc/library/readline.rst
Lib/test/test_readline.py
Misc/NEWS.d/next/Library/2025-11-15-11-10-16.gh-issue-48752.aB3xYz.rst [new file with mode: 0644]
Modules/clinic/readline.c.h
Modules/readline.c