From f94df933b9770ca5bea9b1f622c6967b6f7723d6 Mon Sep 17 00:00:00 2001 From: Kuang Yu Heng Date: Sun, 27 Jul 2025 18:12:05 +0800 Subject: [PATCH 1/4] docs: note readline no longer supported in REPL after 3.13 Add a note to the readline module documentation stating that Python 3.13 and later no longer supports readline in the default REPL, as per gh-118840. Includes workaround using PYTHON_BASIC_REPL. Closes gh-137113. Signed-off-by: Kuang Yu Heng --- Doc/library/readline.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst index f649fce5efc377..937182806f6ffe 100644 --- a/Doc/library/readline.rst +++ b/Doc/library/readline.rst @@ -7,6 +7,10 @@ .. sectionauthor:: Skip Montanaro +.. note:: + The Python REPL after version 3.13 no longer supports readline as per :gh:`118840`. + However, readline can still be used if the :envvar:`PYTHON_BASIC_REPL` environment variable is set. + -------------- The :mod:`readline` module defines a number of functions to facilitate From a6a14e5c1022226bfbb18f832ab41d146f9e3e5c Mon Sep 17 00:00:00 2001 From: Kuang Yu Heng Date: Mon, 28 Jul 2025 22:53:07 +0800 Subject: [PATCH 2/4] doc: rephrased readline support documentation as per feedback Signed-off-by: Kuang Yu Heng --- Doc/library/readline.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst index 937182806f6ffe..9a2d70f99b76a2 100644 --- a/Doc/library/readline.rst +++ b/Doc/library/readline.rst @@ -8,8 +8,8 @@ .. sectionauthor:: Skip Montanaro .. note:: - The Python REPL after version 3.13 no longer supports readline as per :gh:`118840`. - However, readline can still be used if the :envvar:`PYTHON_BASIC_REPL` environment variable is set. + The new REPL introduced in version 3.13 no longer supports readline. + However, readline can still be used by setting the :envvar:`PYTHON_BASIC_REPL` environment variable. -------------- From c80757374b30e1f95348bdfabe83731cde67d7e6 Mon Sep 17 00:00:00 2001 From: Kuang Yu Heng Date: Mon, 28 Jul 2025 23:03:58 +0800 Subject: [PATCH 3/4] docs: rephrased readline support wording Signed-off-by: Kuang Yu Heng --- Doc/library/readline.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst index 9a2d70f99b76a2..922c7489bd11c0 100644 --- a/Doc/library/readline.rst +++ b/Doc/library/readline.rst @@ -8,7 +8,7 @@ .. sectionauthor:: Skip Montanaro .. note:: - The new REPL introduced in version 3.13 no longer supports readline. + The new :term:`REPL` introduced in version 3.13 doesn't support readline. However, readline can still be used by setting the :envvar:`PYTHON_BASIC_REPL` environment variable. -------------- From b458dbf49f7bbe6d5b0b58b584e72587cf3d344a Mon Sep 17 00:00:00 2001 From: Kuang Yu Heng Date: Tue, 29 Jul 2025 21:47:48 +0800 Subject: [PATCH 4/4] reduce line length Co-authored-by: AN Long --- 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 922c7489bd11c0..23d5421485a0a6 100644 --- a/Doc/library/readline.rst +++ b/Doc/library/readline.rst @@ -9,7 +9,8 @@ .. note:: The new :term:`REPL` introduced in version 3.13 doesn't support readline. - However, readline can still be used by setting the :envvar:`PYTHON_BASIC_REPL` environment variable. + However, readline can still be used by setting the :envvar:`PYTHON_BASIC_REPL` + environment variable. --------------