mirror of https://github.com/python/cpython
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.
This commit is contained in:
parent
d4bb38f82b
commit
b9a5522dd9
|
@ -1097,6 +1097,11 @@ Porting to Python 3.11
|
|||
* Distributors are encouraged to build Python with the optimized Blake2
|
||||
library `libb2`_.
|
||||
|
||||
* 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.
|
||||
(Contributed by Victor Stinner in :issue:`46850`.)
|
||||
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
|
|
@ -15,8 +15,6 @@ PyAPI_FUNC(PyObject *) _PyEval_GetBuiltinId(_Py_Identifier *);
|
|||
flag was set, else return 0. */
|
||||
PyAPI_FUNC(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf);
|
||||
|
||||
PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(PyThreadState *tstate, struct _PyInterpreterFrame *f, int exc);
|
||||
|
||||
PyAPI_FUNC(void) _PyEval_SetSwitchInterval(unsigned long microseconds);
|
||||
PyAPI_FUNC(unsigned long) _PyEval_GetSwitchInterval(void);
|
||||
|
||||
|
|
|
@ -59,6 +59,11 @@ extern PyObject* _PyEval_BuiltinsFromGlobals(
|
|||
PyObject *globals);
|
||||
|
||||
|
||||
PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(
|
||||
PyThreadState *tstate,
|
||||
struct _PyInterpreterFrame *frame,
|
||||
int throwflag);
|
||||
|
||||
static inline PyObject*
|
||||
_PyEval_EvalFrame(PyThreadState *tstate, struct _PyInterpreterFrame *frame, int throwflag)
|
||||
{
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
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. Patch by Victor Stinner.
|
Loading…
Reference in New Issue