File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1638,6 +1638,7 @@ and are also passed to registered trace functions.
1638
1638
single: f_locals (frame attribute)
1639
1639
single: f_lasti (frame attribute)
1640
1640
single: f_builtins (frame attribute)
1641
+ single: f_generator (frame attribute)
1641
1642
1642
1643
Special read-only attributes
1643
1644
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1675,6 +1676,12 @@ Special read-only attributes
1675
1676
(this is an index into the :term: `bytecode ` string of the
1676
1677
:ref: `code object <code-objects >`)
1677
1678
1679
+ * - .. attribute:: frame.f_generator
1680
+ - The :term: `generator ` or :term: `coroutine ` object that owns this frame,
1681
+ or ``None `` if the frame is a normal function.
1682
+
1683
+ .. versionadded :: 3.14
1684
+
1678
1685
.. index ::
1679
1686
single: f_trace (frame attribute)
1680
1687
single: f_trace_lines (frame attribute)
You can’t perform that action at this time.
0 commit comments