Skip to content

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

Closed

Description

@jade-tea-h

Summary

https://docs.python.org/3/library/readline.html
As per this issue (#118840), the python REPL after version 3.13 no longer supports readline. Readline can still be used if PYTHON_BASIC_REPL is set. The documentation should be changed to reflect this, it is rather difficult to understand why the example pythonrc.py on the page doesn't work otherwise.

Linked PRs

Activity

  1. Mariatta commented on Jul 25, 2025

    @Mariatta
  2. Yuheng3107 commented on Jul 26, 2025

    @Yuheng3107
    Contributor

    Hi, I'd like to start contributing to CPython and was hoping to work on this issue. I've previously contributed to an open source project with 6.9k stars. I have also read the developer's guide. Could I please be assigned this issue? Thanks!

  3. AA-Turner commented on Jul 26, 2025

    @AA-Turner
    Member

    We don't assign issues (and star counts are neither here nor there). Feel free to have a stab, though.

    A

  4. StanFromIreland commented on Jul 26, 2025

    @StanFromIreland
    Member

    Go ahead, anyone can start working on an issue if no one else says they have! We generally don't assign issues here.

  5. Yuheng3107 commented on Jul 26, 2025

    @Yuheng3107
    Contributor

    Thank you, it is my first time trying to contribute to cpython. Will start work on this issue ASAP

  6. added a commit that references this issue on Jul 27, 2025
    f94df93
  7. StanFromIreland commented on Sep 4, 2025

    @StanFromIreland
    Member

    There is a similar claim in the tutorial that needs to be removed.

  8. Yuheng3107 commented on Sep 5, 2025

    @Yuheng3107
    Contributor

    The interpreter’s line-editing features include interactive editing, history substitution and code completion on systems that support the GNU Readline library.

    Perhaps the quickest check to see whether command line editing is supported is typing Ctrl+P at the first Python prompt you get. If it beeps, you have command line editing; see Appendix Interactive Input Editing and History Substitution 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.

    Do I remove this entire block?

  9. Yuheng3107 commented on Nov 18, 2025

    @Yuheng3107
    Contributor

    Hi @StanFromIreland I have removed the reference to readline in the tutorial. Please see #137142

    Could I get a review please? Thanks!

  10. added a commit that references this issue on Jan 12, 2026
  11. added a commit that references this issue on Jan 12, 2026
  12. added 2 commits that reference this issue on Jan 13, 2026
  13. added 2 commits that reference this issue on Jan 14, 2026
  14. added a commit that references this issue on Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc direasytopic-replRelated to the interactive shell

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions