mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-40429: PyThreadState_GetFrame() returns a strong ref (GH-19781)
The PyThreadState_GetFrame() function now returns a strong reference to the frame.
This commit is contained in:
parent
37af21b667
commit
4386b9045e
7 changed files with 26 additions and 20 deletions
|
@ -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`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue