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.
16381638 single: f_locals (frame attribute)
16391639 single: f_lasti (frame attribute)
16401640 single: f_builtins (frame attribute)
1641+ single: f_generator (frame attribute)
16411642
16421643Special read-only attributes
16431644~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1675,6 +1676,12 @@ Special read-only attributes
16751676 (this is an index into the :term: `bytecode ` string of the
16761677 :ref: `code object <code-objects >`)
16771678
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+
16781685.. index ::
16791686 single: f_trace (frame attribute)
16801687 single: f_trace_lines (frame attribute)
You can’t perform that action at this time.
0 commit comments