diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-29 01:01:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 01:01:43 (GMT) |
commit | 4386b9045e5fe1151e65c2816264b5710000eb9f (patch) | |
tree | c1bcaffac32a12c8e8f52c1e621d18665b06ac6b /Doc | |
parent | 37af21b667a9f41437b5b8e451497d7725016df5 (diff) | |
download | cpython-4386b9045e5fe1151e65c2816264b5710000eb9f.zip cpython-4386b9045e5fe1151e65c2816264b5710000eb9f.tar.gz cpython-4386b9045e5fe1151e65c2816264b5710000eb9f.tar.bz2 |
bpo-40429: PyThreadState_GetFrame() returns a strong ref (GH-19781)
The PyThreadState_GetFrame() function now returns a strong reference
to the frame.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/init.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index afde3db..68fed2a 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -1074,10 +1074,10 @@ All of the following functions must be called after :c:func:`Py_Initialize`. .. c:function:: PyFrameObject* PyThreadState_GetFrame(PyThreadState *tstate) - Get a borrowed reference to the current frame of the Python thread state - *tstate*. + Get the current frame of the Python thread state *tstate*. - Return ``NULL`` if no frame is currently executing. + Return a strong reference. Return ``NULL`` if no frame is currently + executing. See also :c:func:`PyEval_GetFrame`. |