diff options
author | Mark Shannon <mark@hotpy.org> | 2021-01-29 13:24:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 13:24:55 (GMT) |
commit | d6c33fbd346765c6a8654dccacb2338006bf2b47 (patch) | |
tree | 857d7b70431dc74ca9b68e5ce1d56953f19f8d77 /Include/internal/pycore_ceval.h | |
parent | 23a567c11ca36eedde0e119443c85cc16075deaf (diff) | |
download | cpython-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/internal/pycore_ceval.h')
-rw-r--r-- | Include/internal/pycore_ceval.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h index 38fd681..a9da8b8 100644 --- a/Include/internal/pycore_ceval.h +++ b/Include/internal/pycore_ceval.h @@ -42,13 +42,10 @@ _PyEval_EvalFrame(PyThreadState *tstate, PyFrameObject *f, int throwflag) extern PyObject *_PyEval_EvalCode( PyThreadState *tstate, - PyObject *_co, PyObject *globals, PyObject *locals, + PyFrameConstructor *desc, PyObject *locals, PyObject *const *args, Py_ssize_t argcount, PyObject *const *kwnames, PyObject *const *kwargs, - Py_ssize_t kwcount, int kwstep, - PyObject *const *defs, Py_ssize_t defcount, - PyObject *kwdefs, PyObject *closure, - PyObject *name, PyObject *qualname); + Py_ssize_t kwcount, int kwstep); #ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS extern int _PyEval_ThreadsInitialized(PyInterpreterState *interp); |