File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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+
11581162New Features
11591163------------
11601164
You can’t perform that action at this time.
0 commit comments