diff options
author | Mark Shannon <mark@hotpy.org> | 2022-04-08 11:18:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 11:18:57 (GMT) |
commit | 5b4a4b6f0905c60514528b454af43aeea058b5a2 (patch) | |
tree | ab395cfccfecb94af2db5055f7477ddb39a9ea3e /Doc/c-api/frame.rst | |
parent | f4b328e2bbbcc1096a28e903f07868b425397767 (diff) | |
download | cpython-5b4a4b6f0905c60514528b454af43aeea058b5a2.zip cpython-5b4a4b6f0905c60514528b454af43aeea058b5a2.tar.gz cpython-5b4a4b6f0905c60514528b454af43aeea058b5a2.tar.bz2 |
Add new PyFrame_GetLasti C-API function (GH-32413)
Diffstat (limited to 'Doc/c-api/frame.rst')
-rw-r--r-- | Doc/c-api/frame.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/c-api/frame.rst b/Doc/c-api/frame.rst index f6c682c..68e5dc6 100644 --- a/Doc/c-api/frame.rst +++ b/Doc/c-api/frame.rst @@ -78,6 +78,17 @@ See also :ref:`Reflection <reflection>`. .. versionadded:: 3.11 +.. c:function:: int PyFrame_GetLasti(PyFrameObject *frame) + + Get the *frame*'s ``f_lasti`` attribute (:class:`dict`). + + Returns -1 if ``frame.f_lasti`` is ``None``. + + *frame* must not be ``NULL``. + + .. versionadded:: 3.11 + + .. c:function:: PyObject* PyFrame_GetLocals(PyFrameObject *frame) Get the *frame*'s ``f_locals`` attribute (:class:`dict`). |