Skip to content

gh-159887: Support multiple statements in pdb prompts - #160039

Draft
johnslavik wants to merge 1 commit into
python:mainfrom
johnslavik:gh-159887-pdb-multi-statement
Draft

johnslavik wants to merge 1 commit into
python:mainfrom
johnslavik:gh-159887-pdb-multi-statement

Conversation

@johnslavik

@johnslavik johnslavik commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Allow multiple Python statements to be submitted as one command in the local and remote Pdb prompts. For example, this pasted block now defines both classes and displays the result:

class A:
    pass
class B(A):
    pass
B()

Preserve interactive expression output and access to the paused frame's variables, including annotated assignments and future imports. Retain assignments and deletions made before an exception without executing the block again, and handle convenience variables on continuation lines.

@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 21, 2026
@read-the-docs-community

read-the-docs-community Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35301876 | 📁 Comparing 68e6cae against main (0d35e3b)

  🔍 Preview build  

2 files changed
± library/pdb.html
± whatsnew/changelog.html

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

Labels

sprint type-feature A feature request or enhancement

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant