GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support multi-statement prompts in PDB REPL · Issue #159887 · python/cpython

Support multi-statement prompts in PDB REPL #159887

New issue
Copy link
New issue
Copy link
Open
Open
Support multi-statement prompts in PDB REPL#159887
Copy link
Assignees
johnslavik
Labels
sprintstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

@johnslavik
johnslavik
opened on Oct 20, 2026
Issue body actions

Feature or enhancement

Current vs expected:

 (Pdb) class A:
 ...       pass
 ...
 ...   class B(A):
 ...       pass
 ...
 ...   B()
 ...
-*** SyntaxError: invalid syntax
+<__main__.B object at 0x107affce0>

(Whereas the main interactive REPL supports multi-class one-turn prompts from the user).

Found during stress-testing #157612 and discussed with @gaogaotiantian.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

  • gh-159887: Support multiple statements in pdb prompts #160039
Reacted by Neko Asakura

Activity

  1. johnslavik
    self-assigned this
    on Oct 20, 2026
  2. johnslavik
    added
    type-featureA feature request or enhancementA feature request or enhancement
    sprint
    on Oct 20, 2026
  3. github-project-automation
    added this to Sprinton Oct 20, 2026
  4. github-project-automation
    moved this to Todo in Sprinton Oct 20, 2026
  5. StanFromIreland
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Oct 20, 2026
  6. gaogaotiantian commented on Oct 20, 2026

    @gaogaotiantian
    gaogaotiantian
    on Oct 20, 2026
    Member
    More actions

    I figure you want to work on this yourself @johnslavik ?

  7. johnslavik commented on Oct 20, 2026

    @johnslavik
    johnslavik
    on Oct 20, 2026
    MemberAuthor
    More actions

    @gaogaotiantian Yeah I'm working on it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @johnslavik
    johnslavik

Labels

sprintstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Projects

  • Sprint
    Status
    Todo
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.