summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-04-06 11:58:07 (GMT)
committerGitHub <noreply@github.com>2022-04-06 11:58:07 (GMT)
commit2b4f2f5fa4d1123c19bf0643cfa5a4fe8df4175c (patch)
tree8fd15ec78c5289f3eaf945d143d0c67ef16f5b95 /Doc/c-api
parent1d3e743599673e9135d268fb72f0352d8ce23d97 (diff)
downloadcpython-2b4f2f5fa4d1123c19bf0643cfa5a4fe8df4175c.zip
cpython-2b4f2f5fa4d1123c19bf0643cfa5a4fe8df4175c.tar.gz
cpython-2b4f2f5fa4d1123c19bf0643cfa5a4fe8df4175c.tar.bz2
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 commit f877b40e3f7e0d97878884d80fbec879a85ab7e8. * Revert "bpo-46850: Move _PyEval_EvalFrameDefault() to internal C API (GH-32052)" This reverts commit b9a5522dd952125a99ff554f01f311cae25f5a91.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/init.rst11
1 files changed, 1 insertions, 10 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
index 82c4ace..3fda9c3 100644
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -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".