[Python-checkins] bpo-40421: Fix PyFrame_GetCode() documentation (GH-31535)

vstinner webhook-mailer at python.org
Wed Feb 23 13:49:31 EST 2022


https://github.com/python/cpython/commit/78859e58e4e016286e648d1dc155e0f6cebfa6ff
commit: 78859e58e4e016286e648d1dc155e0f6cebfa6ff
branch: main
author: Victor Stinner <vstinner at python.org>
committer: vstinner <vstinner at python.org>
date: 2022-02-23T19:49:21+01:00
summary:

bpo-40421: Fix PyFrame_GetCode() documentation (GH-31535)

Fix PyFrame_GetBack() and PyFrame_GetCode() return type in
the documentation.

files:
M Doc/c-api/reflection.rst

diff --git a/Doc/c-api/reflection.rst b/Doc/c-api/reflection.rst
index 64ce4d1d0c34d..fe7741a2d7a9f 100644
--- a/Doc/c-api/reflection.rst
+++ b/Doc/c-api/reflection.rst
@@ -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.
 



More information about the Python-checkins mailing list