Skip to content

Use print_stack_entry to print frames in Python 3.14#15242

Open
ccordoba12 wants to merge 1 commit into
ipython:mainfrom
ccordoba12:use-stack-entry-to-print-frame-status
Open

Use print_stack_entry to print frames in Python 3.14#15242
ccordoba12 wants to merge 1 commit into
ipython:mainfrom
ccordoba12:use-stack-entry-to-print-frame-status

Conversation

@ccordoba12

@ccordoba12 ccordoba12 commented Jun 7, 2026

Copy link
Copy Markdown
Member

This change is needed to override some changes done in the base Pdb class in 3.14, which end up using print_stack_trace to print stack entries in IPython:

https://github.com/python/cpython/blob/5b33e9c1763813c459f9857ad3c168692fb95148/Lib/pdb.py#L1258-L1261

It's effect can be seen when using a breakpoint() call in Spyder:

Before

image

After

image

@ccordoba12 ccordoba12 changed the title Use print_stack_entry to print frames in Python 3.14+ Use print_stack_entry to print frames in Python 3.14 Jun 7, 2026
This change is needed to override some changes done in the base Pdb
class, which end up using print_stack_trace to print stack entries in
IPython.
@ccordoba12 ccordoba12 force-pushed the use-stack-entry-to-print-frame-status branch from 8dfd97b to c687277 Compare June 7, 2026 19:23
@ccordoba12

Copy link
Copy Markdown
Member Author

@Carreau, could you consider this for 9.14.2? I took me some time to understand what was happening, that's why I couldn't submit a PR in time for 9.14.1.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant