diff options
author | Mark Shannon <mark@hotpy.org> | 2021-01-29 13:24:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 13:24:55 +0000 |
commit | d6c33fbd346765c6a8654dccacb2338006bf2b47 (patch) | |
tree | 857d7b70431dc74ca9b68e5ce1d56953f19f8d77 /Include/cpython/frameobject.h | |
parent | 23a567c11ca36eedde0e119443c85cc16075deaf (diff) | |
download | cpython-git-d6c33fbd346765c6a8654dccacb2338006bf2b47.tar.gz |
bpo-42990: Introduce 'frame constructor' struct to simplify API for PyEval_CodeEval and friends (GH-24298)
* Introduce 'frame constructor' to simplify API for frame creation
* Embed struct using a macro to conform to PEP 7
Diffstat (limited to 'Include/cpython/frameobject.h')
-rw-r--r-- | Include/cpython/frameobject.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/cpython/frameobject.h b/Include/cpython/frameobject.h index 28170615a0..f162e2465f 100644 --- a/Include/cpython/frameobject.h +++ b/Include/cpython/frameobject.h @@ -72,7 +72,7 @@ PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *, /* only internal use */ PyFrameObject* _PyFrame_New_NoTrack(PyThreadState *, PyCodeObject *, - PyObject *, PyObject *); + PyObject *, PyObject *, PyObject *); /* The rest of the interface is specific for frame objects */ @@ -92,3 +92,5 @@ PyAPI_FUNC(void) PyFrame_FastToLocals(PyFrameObject *); PyAPI_FUNC(void) _PyFrame_DebugMallocStats(FILE *out); PyAPI_FUNC(PyFrameObject *) PyFrame_GetBack(PyFrameObject *frame); + +PyObject *_PyEval_BuiltinsFromGlobals(PyObject *globals); |