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

Whitespace-only lines in PDB cause a line continuation when taken from history #125378

Closed
Assignees
gaogaotiantian
Labels
3.13bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
@treyhunner

Description

@treyhunner

Bug report

Bug description:

The issue happensonly when pulling a line from history.

Typing 4 spaces or a Tab and hitting Enter when at the PDB prompt is interpreted the same as hitting Enter without entering whitespace.
However, grabbing a whitespace-only line from history causes a prompt/line continuatin.

To reproduce:

  1. Typeif True: and hit Enter
  2. Type 4 spaces and hit Enter
  3. Type 4 spaces,print("True") and hit Enter twice
  4. Hit the up arrow 2 times
  5. Hit Enter again

After those 5 steps you will see:

image

Repeatedly hitting Enter at that point shows the same continuation prompt:

image

The new REPL had a somewhat similar issue (#118911 was part of it).

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Labels

3.13bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytype-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