Skip to content

Commit 0e452a1

Browse files
committed
Document new PyFrame_GetLocals C-API function.
1 parent 56aa001 commit 0e452a1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎Doc/c-api/frame.rst‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ See also :ref:`Reflection <reflection>`.
4141
.. versionadded:: 3.9
4242
4343
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+
4455
.. c:function:: int PyFrame_GetLineNumber(PyFrameObject *frame)
4556
4657
Return the line number that *frame* is currently executing.

0 commit comments

Comments
 (0)