Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python 3.13.0b1 REPL changes behavior wrt PgUp, inserts first line of ~/.python_history #119034

Closed
Labels
3.13bugs and security fixes3.14bugs and security fixestopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error
@hroncok

Description

@hroncok

Bug report

Bug description:

When I use the Python REPL, I am used toPgUp browsing my prompt history based on the partial command I already typed.

Consider:

>>>import sys>>>import os>>>...>>> im[PgUp]

Python 3.12 REPL insertsimport os with my cursor betweenm andp. I can keep pressingPgUp to getimport sys and older commands from my history. I don't know if this is Fedora's configuration of readline, or the default. However, Bash and older Python REPLs behave that way, as well as IPython/Jupyter console.

Python 3.130b1 REPL changes my prompt toprint("a") when I pressPgUp. The particular command is my first line of~/.python_history. PressingPgUp again changes nothing.

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs 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


      [8]ページ先頭

      ©2009-2025 Movatter.jp