We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PyFrame_GetLocals
1 parent 56aa001 commit 0e452a1Copy full SHA for 0e452a1
Doc/c-api/frame.rst
@@ -41,6 +41,17 @@ See also :ref:`Reflection <reflection>`.
41
.. versionadded:: 3.9
42
43
44
+.. c:function:: PyCodeObject* PyFrame_GetLocals(PyFrameObject *frame)
45
+
46
+ Get the *frame*'s ``f_locals`` attribute.
47
48
+ Return a :term:`strong reference`.
49
50
+ *frame* must not be ``NULL``.
51
52
+ .. versionadded:: 3.11
53
54
55
.. c:function:: int PyFrame_GetLineNumber(PyFrameObject *frame)
56
57
Return the line number that *frame* is currently executing.
0 commit comments