Skip to content

[3.13] gh-146092: Handle _PyFrame_GetFrameObject() failures properly (GH-146124) (GH-146132)#146138

Merged
vstinner merged 1 commit intopython:3.13from
miss-islington:backport-8eeb800-3.13
Mar 18, 2026
Merged

[3.13] gh-146092: Handle _PyFrame_GetFrameObject() failures properly (GH-146124) (GH-146132)#146138
vstinner merged 1 commit intopython:3.13from
miss-islington:backport-8eeb800-3.13

Conversation

@miss-islington
Copy link
Contributor

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)

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

…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)
@vstinner vstinner merged commit 53b544a into python:3.13 Mar 18, 2026
44 checks passed
@miss-islington miss-islington deleted the backport-8eeb800-3.13 branch March 18, 2026 20:23
@vstinner
Copy link
Member

Merged. Thanks for checking @serhiy-storchaka.

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.

3 participants