mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
Revert "bpo-46850: Move _PyEval_EvalFrameDefault() to internal C API (GH-32052)" (GH-32343)
* Revert "bpo-46850: Move _PyInterpreterState_SetEvalFrameFunc() to internal C API (GH-32054)" This reverts commitf877b40e3f. * Revert "bpo-46850: Move _PyEval_EvalFrameDefault() to internal C API (GH-32052)" This reverts commitb9a5522dd9.
This commit is contained in:
parent
1d3e743599
commit
2b4f2f5fa4
7 changed files with 15 additions and 42 deletions
|
|
@ -1228,25 +1228,18 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
|
|||
|
||||
.. versionadded:: 3.8
|
||||
|
||||
.. c:type:: PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
|
||||
|
||||
Internal C API.
|
||||
.. c:type:: PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, PyFrameObject *frame, int throwflag)
|
||||
|
||||
Type of a frame evaluation function.
|
||||
|
||||
The *throwflag* parameter is used by the ``throw()`` method of generators:
|
||||
if non-zero, handle the current exception.
|
||||
|
||||
.. versionchanged:: 3.11
|
||||
The second parameter type becomes ``_PyInterpreterFrame``.
|
||||
|
||||
.. versionchanged:: 3.9
|
||||
The function now takes a *tstate* parameter.
|
||||
|
||||
.. c:function:: _PyFrameEvalFunction _PyInterpreterState_GetEvalFrameFunc(PyInterpreterState *interp)
|
||||
|
||||
Internal C API.
|
||||
|
||||
Get the frame evaluation function.
|
||||
|
||||
See the :pep:`523` "Adding a frame evaluation API to CPython".
|
||||
|
|
@ -1255,8 +1248,6 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
|
|||
|
||||
.. c:function:: void _PyInterpreterState_SetEvalFrameFunc(PyInterpreterState *interp, _PyFrameEvalFunction eval_frame)
|
||||
|
||||
Internal C API.
|
||||
|
||||
Set the frame evaluation function.
|
||||
|
||||
See the :pep:`523` "Adding a frame evaluation API to CPython".
|
||||
|
|
|
|||
|
|
@ -1338,17 +1338,6 @@ 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`.)
|
||||
|
||||
* Move the private ``_PyFrameEvalFunction`` type, and private
|
||||
``_PyInterpreterState_GetEvalFrameFunc()`` and
|
||||
``_PyInterpreterState_SetEvalFrameFunc()`` functions to the internal C API.
|
||||
The ``_PyFrameEvalFunction`` callback function type now uses the
|
||||
``_PyInterpreterFrame`` type which is part of the internal C API.
|
||||
(Contributed by Victor Stinner in :issue:`46850`.)
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue