Skip to content

[3.14] gh-146092: Handle _PyFrame_GetFrameObject() failures properly (#146124) - #146132

Merged
vstinner merged 1 commit into
python:3.14from
vstinner:frame_getlocals14
Mar 18, 2026
Merged

vstinner merged 1 commit into
python:3.14from
vstinner:frame_getlocals14

Conversation

@vstinner

@vstinner vstinner commented Mar 18, 2026 •

Copy link
Copy Markdown
Member
  • Fix _PyFrame_GetLocals() and _PyFrame_GetLocals() error handling.
  • _PyEval_ExceptionGroupMatch() now fails on _PyFrame_GetLocals() error.

(cherry picked from commit e1e4852)

…ython#146124)

* Fix _PyFrame_GetLocals() and _PyFrame_GetLocals() error handling.
* _PyEval_ExceptionGroupMatch() now fails on _PyFrame_GetLocals()
  error.

(cherry picked from commit e1e4852)
@vstinner
vstinner requested a review from markshannon as a code owner March 18, 2026 17:31
@vstinner vstinner added the needs backport to 3.13 only security fixes label Mar 18, 2026
@vstinner
vstinner enabled auto-merge (squash) March 18, 2026 17:32
@vstinner
vstinner merged commit 8eeb800 into python:3.14 Mar 18, 2026
50 of 52 checks passed
@vstinner
vstinner deleted the frame_getlocals14 branch March 18, 2026 17:57
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 18, 2026
…perly (pythonGH-146124) (pythonGH-146132)

pythongh-146092: Handle _PyFrame_GetFrameObject() failures properly (pythonGH-146124)

* Fix _PyFrame_GetLocals() and _PyFrame_GetLocals() error handling.
* _PyEval_ExceptionGroupMatch() now fails on _PyFrame_GetLocals()
  error.
(cherry picked from commit 8eeb800)

Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit e1e4852)
@bedevere-app

bedevere-app Bot commented Mar 18, 2026

Copy link
Copy Markdown

GH-146138 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Mar 18, 2026
vstinner added a commit that referenced this pull request Mar 18, 2026
…H-146124) (GH-146132) (#146138)

[3.14] gh-146092: Handle _PyFrame_GetFrameObject() failures properly (GH-146124) (GH-146132)

gh-146092: Handle _PyFrame_GetFrameObject() failures properly (GH-146124)

* Fix _PyFrame_GetLocals() and _PyFrame_GetLocals() error handling.
* _PyEval_ExceptionGroupMatch() now fails on _PyFrame_GetLocals()
  error.
(cherry picked from commit 8eeb800)


(cherry picked from commit e1e4852)

Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant