diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-07-05 23:31:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 23:31:37 (GMT) |
commit | bb17e6f5de2bca85746a06d504029f90e85e3892 (patch) | |
tree | 826075fb8af05894f14c348b1ac2c9f7041bb2dd /Include | |
parent | a49a29f22bcc39376e760823ec512df831d2e828 (diff) | |
download | cpython-bb17e6f5de2bca85746a06d504029f90e85e3892.zip cpython-bb17e6f5de2bca85746a06d504029f90e85e3892.tar.gz cpython-bb17e6f5de2bca85746a06d504029f90e85e3892.tar.bz2 |
[3.12] gh-105340: include hidden fast-locals in locals() (GH-105715) (#106470)
gh-105340: include hidden fast-locals in locals() (GH-105715)
* gh-105340: include hidden fast-locals in locals()
(cherry picked from commit 104d7b760fed18055e4f04e5da3ca619e28bfc81)
Co-authored-by: Carl Meyer <carl@oddbird.net>
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_ceval.h | 1 | ||||
-rw-r--r-- | Include/internal/pycore_frame.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h index 9e9b523..fc0f72e 100644 --- a/Include/internal/pycore_ceval.h +++ b/Include/internal/pycore_ceval.h @@ -154,6 +154,7 @@ extern PyObject* _Py_MakeCoro(PyFunctionObject *func); extern int _Py_HandlePending(PyThreadState *tstate); +extern PyObject * _PyEval_GetFrameLocals(void); #ifdef __cplusplus diff --git a/Include/internal/pycore_frame.h b/Include/internal/pycore_frame.h index a72e03f..158db2c 100644 --- a/Include/internal/pycore_frame.h +++ b/Include/internal/pycore_frame.h @@ -226,6 +226,9 @@ _PyFrame_ClearExceptCode(_PyInterpreterFrame * frame); int _PyFrame_Traverse(_PyInterpreterFrame *frame, visitproc visit, void *arg); +PyObject * +_PyFrame_GetLocals(_PyInterpreterFrame *frame, int include_hidden); + int _PyFrame_FastToLocalsWithError(_PyInterpreterFrame *frame); |