bpo-46850: Move _PyEval_EvalFrameDefault() to internal C API (GH-32052) · python/cpython@b9a5522 · GitHub
Skip to content

Commit b9a5522

Browse files
authored
bpo-46850: Move _PyEval_EvalFrameDefault() to internal C API (GH-32052)
Move the private undocumented _PyEval_EvalFrameDefault() function to the internal C API. The function now uses the _PyInterpreterFrame type which is part of the internal C API.
1 parent d4bb38f commit b9a5522

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

Doc/whatsnew/3.11.rst

Lines changed: 5 additions & 0 deletions

Include/cpython/ceval.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ PyAPI_FUNC(PyObject *) _PyEval_GetBuiltinId(_Py_Identifier *);
1515
flag was set, else return 0. */
1616
PyAPI_FUNC(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf);
1717

18-
PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(PyThreadState *tstate, struct _PyInterpreterFrame *f, int exc);
19-
2018
PyAPI_FUNC(void) _PyEval_SetSwitchInterval(unsigned long microseconds);
2119
PyAPI_FUNC(unsigned long) _PyEval_GetSwitchInterval(void);
2220

Include/internal/pycore_ceval.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ extern PyObject* _PyEval_BuiltinsFromGlobals(
5959
PyObject *globals);
6060

6161

62+
PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(
63+
PyThreadState *tstate,
64+
struct _PyInterpreterFrame *frame,
65+
int throwflag);
66+
6267
static inline PyObject*
6368
_PyEval_EvalFrame(PyThreadState *tstate, struct _PyInterpreterFrame *frame, int throwflag)
6469
{
Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)