File tree 2 files changed +8
-1
lines changed
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`.
1228
1228
1229
1229
.. versionadded :: 3.8
1230
1230
1231
- .. c :type :: PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, PyFrameObject *frame, int throwflag)
1231
+ .. c :type :: PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
1232
1232
1233
1233
Type of a frame evaluation function.
1234
1234
@@ -1238,6 +1238,9 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
1238
1238
.. versionchanged :: 3.9
1239
1239
The function now takes a *tstate * parameter.
1240
1240
1241
+ .. versionchanged :: 3.11
1242
+ The *frame * parameter changed from ``PyFrameObject* `` to ``_PyInterpreterFrame* ``.
1243
+
1241
1244
.. c :function :: _PyFrameEvalFunction _PyInterpreterState_GetEvalFrameFunc (PyInterpreterState *interp)
1242
1245
1243
1246
Get the frame evaluation function.
Original file line number Diff line number Diff line change @@ -1155,6 +1155,10 @@ C API Changes
1155
1155
be used for ``size ``.
1156
1156
(Contributed by Kumar Aditya in :issue: `46608 `.)
1157
1157
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
+
1158
1162
New Features
1159
1163
------------
1160
1164
You can’t perform that action at this time.
0 commit comments