Skip to content

Commit 5974827

Browse files
authored
GH-88756: Update docs for PEP 523 eval function type. (GH-91788)
1 parent ac4ffd3 commit 5974827

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Doc/c-api/init.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
12281228
12291229
.. versionadded:: 3.8
12301230
1231-
.. c:type:: PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, PyFrameObject *frame, int throwflag)
1231+
.. c:type:: PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
12321232
12331233
Type of a frame evaluation function.
12341234
@@ -1238,6 +1238,9 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
12381238
.. versionchanged:: 3.9
12391239
The function now takes a *tstate* parameter.
12401240
1241+
.. versionchanged:: 3.11
1242+
The *frame* parameter changed from ``PyFrameObject*`` to ``_PyInterpreterFrame*``.
1243+
12411244
.. c:function:: _PyFrameEvalFunction _PyInterpreterState_GetEvalFrameFunc(PyInterpreterState *interp)
12421245
12431246
Get the frame evaluation function.

Doc/whatsnew/3.11.rst

+4
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,10 @@ C API Changes
11551155
be used for ``size``.
11561156
(Contributed by Kumar Aditya in :issue:`46608`.)
11571157

1158+
* :c:func:`_PyFrameEvalFunction` now takes ``_PyInterpreterFrame*``
1159+
as its second parameter, instead of ``PyFrameObject*``.
1160+
See :pep:`523` for more details of how to use this function pointer type.
1161+
11581162
New Features
11591163
------------
11601164

0 commit comments

Comments
 (0)