Skip to content

fix traceback in with / try: finally: for Python 3.10#2195

Merged
t-vi merged 1 commit intomainfrom
tom/exceptions-3-10
Jun 5, 2025
Merged

fix traceback in with / try: finally: for Python 3.10#2195
t-vi merged 1 commit intomainfrom
tom/exceptions-3-10

Conversation

@t-vi
Copy link
Copy Markdown
Collaborator

@t-vi t-vi commented Jun 5, 2025

Before submitting
  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • (n/a) Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

In Python 3.10, there was a typo when pushing the traceback from a try block handler leading to "swallowed" tracebacks with constructs such as with blocks and try+finally.

Fixes: #1223 .

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@t-vi t-vi requested review from lantiga and mruberry as code owners June 5, 2025 20:11
@t-vi t-vi enabled auto-merge (squash) June 5, 2025 20:50
@t-vi t-vi merged commit e171edf into main Jun 5, 2025
49 checks passed
@t-vi t-vi deleted the tom/exceptions-3-10 branch June 5, 2025 20:51
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.

improve stack traces in the Thunder Python Interpreter with context managers

2 participants