From d6c33fbd346765c6a8654dccacb2338006bf2b47 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Fri, 29 Jan 2021 13:24:55 +0000 Subject: 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 --- Include/cpython/frameobject.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Include/cpython/frameobject.h') 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); -- cgit v1.2.1