Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
f94df93
docs: note readline no longer supported in REPL after 3.13
Yuheng3107 Jul 27, 2025
cfb2487
Merge branch 'main' into docs-readline-repl
Yuheng3107 Jul 27, 2025
123498f
Merge branch 'main' into docs-readline-repl
Yuheng3107 Jul 28, 2025
a6a14e5
doc: rephrased readline support documentation as per feedback
Yuheng3107 Jul 28, 2025
c807573
docs: rephrased readline support wording
Yuheng3107 Jul 28, 2025
985b871
Merge branch 'main' into docs-readline-repl
Yuheng3107 Jul 29, 2025
b458dbf
reduce line length
Yuheng3107 Jul 29, 2025
bbc70a8
Merge branch 'main' into docs-readline-repl
Yuheng3107 Jul 29, 2025
77673a2
Merge branch 'main' into docs-readline-repl
Yuheng3107 Jul 29, 2025
1ead75d
Merge branch 'main' into docs-readline-repl
Yuheng3107 Aug 10, 2025
f8d202a
Merge branch 'main' into docs-readline-repl
Yuheng3107 Sep 2, 2025
11d125b
Merge branch 'main' into docs-readline-repl
Yuheng3107 Nov 14, 2025
e866e2f
Merge branch 'main' into docs-readline-repl
Yuheng3107 Nov 14, 2025
5754eb2
docs: moved readline no longer supported note to the end of page
Yuheng3107 Nov 14, 2025
467b4ba
docs: readded note label to readline docs
Yuheng3107 Nov 15, 2025
575a903
Merge branch 'main' into docs-readline-repl
Yuheng3107 Nov 15, 2025
9dd8c51
docs: bugfix for readline
Yuheng3107 Nov 15, 2025
2803777
Merge branch 'main' into docs-readline-repl
Yuheng3107 Nov 15, 2025
dbeef54
docs: removed mention of readline in tutorial as it is deprecated
Yuheng3107 Nov 18, 2025
01fd166
Merge branch 'main' into docs-readline-repl
Yuheng3107 Nov 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Doc/library/readline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -394,3 +394,9 @@ support history save/restore. ::
def save_history(self, histfile):
readline.set_history_length(1000)
readline.write_history_file(histfile)

.. 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.
10 changes: 0 additions & 10 deletions Doc/tutorial/interpreter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@ Windows) at the primary prompt causes the interpreter to exit with a zero exit
status. If that doesn't work, you can exit the interpreter by typing the
following command: ``quit()``.

The interpreter's line-editing features include interactive editing, history
substitution and code completion on systems that support the `GNU Readline
<https://tiswww.case.edu/php/chet/readline/rltop.html>`_ library.
Perhaps the quickest check to see whether command line editing is supported is
typing :kbd:`Control-P` to the first Python prompt you get. If it beeps, you
have command line editing; see Appendix :ref:`tut-interacting` for an
introduction to the keys. If nothing appears to happen, or if ``^P`` is
echoed, command line editing isn't available; you'll only be able to use
backspace to remove characters from the current line.

The interpreter operates somewhat like the Unix shell: when called with standard
input connected to a tty device, it reads and executes commands interactively;
when called with a file name argument or with a file as standard input, it reads
Expand Down
Loading