Skip to content

Commit

Permalink
GH-88756: Update docs for PEP 523 eval function type. (GH-91788)
Browse files Browse the repository at this point in the history
  • Loading branch information
markshannon committed Apr 21, 2022
1 parent ac4ffd3 commit 5974827
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Doc/c-api/init.rst
Expand Up @@ -1228,7 +1228,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
.. versionadded:: 3.8
.. c:type:: PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, PyFrameObject *frame, int throwflag)
.. c:type:: PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
Type of a frame evaluation function.
Expand All @@ -1238,6 +1238,9 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
.. versionchanged:: 3.9
The function now takes a *tstate* parameter.
.. versionchanged:: 3.11
The *frame* parameter changed from ``PyFrameObject*`` to ``_PyInterpreterFrame*``.
.. c:function:: _PyFrameEvalFunction _PyInterpreterState_GetEvalFrameFunc(PyInterpreterState *interp)
Get the frame evaluation function.
Expand Down
4 changes: 4 additions & 0 deletions Doc/whatsnew/3.11.rst
Expand Up @@ -1155,6 +1155,10 @@ C API Changes
be used for ``size``.
(Contributed by Kumar Aditya in :issue:`46608`.)

* :c:func:`_PyFrameEvalFunction` now takes ``_PyInterpreterFrame*``
as its second parameter, instead of ``PyFrameObject*``.
See :pep:`523` for more details of how to use this function pointer type.

New Features
------------

Expand Down

0 comments on commit 5974827

Please sign in to comment.