diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-28 23:28:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 23:28:13 (GMT) |
commit | 8852ad4208e34825f74e24945edb5bcf055d94fe (patch) | |
tree | 157f239ba46634301e136f4662b1646f7258357e /Doc/c-api | |
parent | 5e8c691594d68925213d36296ce7c4b3e90bcb1d (diff) | |
download | cpython-8852ad4208e34825f74e24945edb5bcf055d94fe.zip cpython-8852ad4208e34825f74e24945edb5bcf055d94fe.tar.gz cpython-8852ad4208e34825f74e24945edb5bcf055d94fe.tar.bz2 |
bpo-40429: PyFrame_GetCode() now returns a strong reference (GH-19773)
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/reflection.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/c-api/reflection.rst b/Doc/c-api/reflection.rst index 594c1ec..21d9878 100644 --- a/Doc/c-api/reflection.rst +++ b/Doc/c-api/reflection.rst @@ -33,10 +33,11 @@ Reflection .. c:function:: int PyFrame_GetCode(PyFrameObject *frame) - Return a borrowed reference to the *frame* code. - The frame code cannot be ``NULL``. + Get the *frame* code. - *frame* must not be ``NULL``. + Return a strong reference. + + *frame* must not be ``NULL``. The result (frame code) cannot be ``NULL``. .. versionadded:: 3.9 |