[3.13] gh-146092: Handle _PyFrame_GetFrameObject() failures properly (GH-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
8eeb800faf5562e6ce3805416f656ab09243c9a6)
(cherry picked from commit
e1e4852133ea548479bc9b975420a32331df7cee)
Co-authored-by: Victor Stinner <vstinner@python.org>