-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
gh-137113 docs: note readline no longer supported in REPL after 3.13 #137142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
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>
Signed-off-by: Kuang Yu Heng <yuheng3107@gmail.com>
Signed-off-by: Kuang Yu Heng <yuheng3107@gmail.com>
Co-authored-by: AN Long <aisk@users.noreply.github.com>
|
@aisk Hi, who would be appropriate to ask to merge this PR if its still relevant? |
|
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()``. | ||
|
|
There was a problem hiding this comment.
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.
| 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.
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/