Skip to content

Commit

Permalink
bpo-40421: Fix PyFrame_GetCode() documentation (GH-31535)
Browse files Browse the repository at this point in the history
Fix PyFrame_GetBack() and PyFrame_GetCode() return type in
the documentation.
(cherry picked from commit 78859e5)

Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
miss-islington and vstinner committed Feb 23, 2022
1 parent 87cebb1 commit 763e23e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/c-api/reflection.rst
Expand Up @@ -31,7 +31,7 @@ Reflection
See also :c:func:`PyThreadState_GetFrame`.
.. c:function:: int PyFrame_GetBack(PyFrameObject *frame)
.. c:function:: PyFrameObject* PyFrame_GetBack(PyFrameObject *frame)
Get the *frame* next outer frame.
Expand All @@ -42,7 +42,7 @@ Reflection
.. versionadded:: 3.9
.. c:function:: int PyFrame_GetCode(PyFrameObject *frame)
.. c:function:: PyCodeObject* PyFrame_GetCode(PyFrameObject *frame)
Get the *frame* code.
Expand Down

0 comments on commit 763e23e

Please sign in to comment.