]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40421: Fix PyFrame_GetCode() documentation (GH-31535)
authorVictor Stinner <vstinner@python.org>
Wed, 23 Feb 2022 18:49:21 +0000 (19:49 +0100)
committerGitHub <noreply@github.com>
Wed, 23 Feb 2022 18:49:21 +0000 (19:49 +0100)
Fix PyFrame_GetBack() and PyFrame_GetCode() return type in
the documentation.

Doc/c-api/reflection.rst

index 64ce4d1d0c34df815c8b2e368cb0f783ca9fd074..fe7741a2d7a9fbcda28b2f4e4ce3bf9503549842 100644 (file)
@@ -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.
 
@@ -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.