Skip to content

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

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

[3.14] gh-146092: Handle _PyFrame_GetFrameObject() failures properly (#146124)#146132
vstinner merged 1 commit intopython:3.14from
vstinner:frame_getlocals14

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Mar 18, 2026

  • 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 bugs and 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
55 of 57 checks passed
@vstinner vstinner deleted the frame_getlocals14 branch March 18, 2026 17:57
@miss-islington-app
Copy link

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 8eeb800faf5562e6ce3805416f656ab09243c9a6)

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

bedevere-app bot commented Mar 18, 2026

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 bugs and 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant