cpython/Misc/NEWS.d/next/C_API
Miss Islington (bot) 5c161cb832
[3.13] gh-122728: Fix SystemError in PyEval_GetLocals() (GH-122735) (#122757)
gh-122728: Fix SystemError in PyEval_GetLocals() (GH-122735)

Fix PyEval_GetLocals() to avoid SystemError ("bad argument to
internal function"). Don't redefine the 'ret' variable in the if
block.

Add an unit test on PyEval_GetLocals().
(cherry picked from commit 4767a6e31c)

Co-authored-by: Victor Stinner <vstinner@python.org>
2024-08-06 23:37:10 +02:00
..
2024-08-06-14-23-11.gh-issue-122728.l-fQ-v.rst [3.13] gh-122728: Fix SystemError in PyEval_GetLocals() (GH-122735) (#122757) 2024-08-06 23:37:10 +02:00