diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2023-12-05 20:23:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 20:23:25 (GMT) |
commit | c26d6c1abaae98201259eab28e41372e06ab746e (patch) | |
tree | 118ce57128ca37414d6c4ef5093ab33e4b9836c4 /Doc/c-api/frame.rst | |
parent | 36f6fa4640a64ab658f931690f632e9f4ca3252a (diff) | |
download | cpython-c26d6c1abaae98201259eab28e41372e06ab746e.zip cpython-c26d6c1abaae98201259eab28e41372e06ab746e.tar.gz cpython-c26d6c1abaae98201259eab28e41372e06ab746e.tar.bz2 |
[3.11] gh-101100: Properly document frame object attributes (#112735) (#112775)
* [3.11] gh-101100: Properly document frame object attributes (#112735)
(cherry-picked from commit d109f637c0)
Diffstat (limited to 'Doc/c-api/frame.rst')
-rw-r--r-- | Doc/c-api/frame.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/frame.rst b/Doc/c-api/frame.rst index b52f347..9152627 100644 --- a/Doc/c-api/frame.rst +++ b/Doc/c-api/frame.rst @@ -50,7 +50,7 @@ See also :ref:`Reflection <reflection>`. .. c:function:: PyObject* PyFrame_GetBuiltins(PyFrameObject *frame) - Get the *frame*'s ``f_builtins`` attribute. + Get the *frame*'s :attr:`~frame.f_builtins` attribute. Return a :term:`strong reference`. The result cannot be ``NULL``. @@ -81,7 +81,7 @@ See also :ref:`Reflection <reflection>`. .. c:function:: PyObject* PyFrame_GetGlobals(PyFrameObject *frame) - Get the *frame*'s ``f_globals`` attribute. + Get the *frame*'s :attr:`~frame.f_globals` attribute. Return a :term:`strong reference`. The result cannot be ``NULL``. @@ -90,7 +90,7 @@ See also :ref:`Reflection <reflection>`. .. c:function:: int PyFrame_GetLasti(PyFrameObject *frame) - Get the *frame*'s ``f_lasti`` attribute. + Get the *frame*'s :attr:`~frame.f_lasti` attribute. Returns -1 if ``frame.f_lasti`` is ``None``. @@ -99,7 +99,7 @@ See also :ref:`Reflection <reflection>`. .. c:function:: PyObject* PyFrame_GetLocals(PyFrameObject *frame) - Get the *frame*'s ``f_locals`` attribute (:class:`dict`). + Get the *frame*'s :attr:`~frame.f_locals` attribute (:class:`dict`). Return a :term:`strong reference`. |