]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40421: Fix PyFrame_GetCode() documentation (GH-31535)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 23 Feb 2022 19:15:57 +0000 (11:15 -0800)
committerGitHub <noreply@github.com>
Wed, 23 Feb 2022 19:15:57 +0000 (11:15 -0800)
Fix PyFrame_GetBack() and PyFrame_GetCode() return type in
the documentation.
(cherry picked from commit 78859e58e4e016286e648d1dc155e0f6cebfa6ff)

Co-authored-by: Victor Stinner <vstinner@python.org>
Doc/c-api/reflection.rst

index 9207d86012c8b338175ba72b849510b7d8edb8c4..44ee009f1f94de0b685565b848d61baded535d99 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.