gh-122728: Fix SystemError in PyEval_GetLocals() (#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(). V
Victor Stinner committed
4767a6e31c0550836b2af45d27e374e721f0c4e6
Parent: 5b8a6c5
Committed by GitHub <noreply@github.com>
on 8/6/2024, 9:01:44 PM