Skip to content

Conversation

@Yuheng3107
Copy link

@Yuheng3107 Yuheng3107 commented Jul 27, 2025

Addee a note to the readline module documentation stating that Python 3.13 and later no longer supports readline in the default REPL, as per #118840.

Closes #137113


📚 Documentation preview 📚: https://cpython-previews--137142.org.readthedocs.build/

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 pythongh-118840. Includes workaround using PYTHON_BASIC_REPL.

Closes pythongh-137113.

Signed-off-by: Kuang Yu Heng <yuheng3107@gmail.com>
@python-cla-bot
Copy link

python-cla-bot bot commented Jul 27, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@Yuheng3107 Yuheng3107 requested a review from aisk July 29, 2025 06:40
Co-authored-by: AN Long <aisk@users.noreply.github.com>
@Yuheng3107
Copy link
Author

@aisk Hi, who would be appropriate to ask to merge this PR if its still relevant?

@StanFromIreland
Copy link
Member

Please do not use the Update Branch button unless necessary (e.g. fixing conflicts, jogging the CI, or very old PRs) as it uses valuable resources. For more information see the devguide.

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()``.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay in review.

I don't think we should remove all of this paragraph.

Would it work to only replace “on systems that support the `GNU Readline” by “on most systems”?
And perhaps replace Ctrl+P (which doesn't beep if you have history) by a more familiar command.

Suggested change
The interpreter's line-editing features include interactive editing, history
substitution and code completion on most systems.
Perhaps the quickest check to see whether command line editing is supported is
typing a word in on the Python prompt, then pressing Left arrow (or :kbd:`Control-b`).
If the cursor moves, you have command line editing; see Appendix
:ref:`tut-interacting` for an introduction to the keys.
If nothing appears to happen, or if a sequence like ``^[[D`` or ``^B`` appears,
command line editing isn't available; you'll only be able to use
backspace to remove characters from the current line.

It would be nice if the linked Appendix actually introduced you to the keys, but, that doesn't need to be done in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Docs: update GNU readline interface documentation to reflect that it is no longer supported

5 participants