Skip to content

Python 3.13: gnureadline appears to no longer be used #125924

@milosivanovic

Description

@milosivanovic

Bug report

Bug description:

Tested in 3.12:
In the <=3.12 Python REPL on Linux, pressing CTRL+R invokes gnureadline and shows:

(reverse-i-search)`':

Tested in 3.13:
In the 3.13 Python REPL on Linux, pressing CTRL+R does not appear to invoke gnureadline and shows:

(r-search `')

Additionally, with nothing in the command history, typing a few characters in the 3.13 REPL (without pressing enter) and then using the up/down arrow keys moves the cursor to the start and end of the line. In 3.12 (any in any other software that uses gnureadline), pressing up/down in this scenario did nothing and is the expected behaviour.

Was gnureadline removed in 3.13 in favour of an in-house implementation that doesn't mirror the featureset? If so, is it possible to restore the previous behaviour from <=3.12? This used to be able to be done with ludwigschwardt/python-gnureadline#62 but this no longer appears to work in 3.13.

CPython versions tested on:

3.12, 3.13

Operating systems tested on:

Linux, macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixestopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions