summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-01-29 13:24:55 (GMT)
committerGitHub <noreply@github.com>2021-01-29 13:24:55 (GMT)
commitd6c33fbd346765c6a8654dccacb2338006bf2b47 (patch)
tree857d7b70431dc74ca9b68e5ce1d56953f19f8d77 /Include/cpython
parent23a567c11ca36eedde0e119443c85cc16075deaf (diff)
downloadcpython-d6c33fbd346765c6a8654dccacb2338006bf2b47.zip
cpython-d6c33fbd346765c6a8654dccacb2338006bf2b47.tar.gz
cpython-d6c33fbd346765c6a8654dccacb2338006bf2b47.tar.bz2
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')
-rw-r--r--Include/cpython/frameobject.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/cpython/frameobject.h b/Include/cpython/frameobject.h
index 2817061..f162e24 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);