Skip to content

Commit c8c9956

Browse files
committed
Docs: move f_generator attribute to end of datamodel page
1 parent cd69f5b commit c8c9956

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/reference/datamodel.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,12 +1633,12 @@ and are also passed to registered trace functions.
16331633

16341634
.. index::
16351635
single: f_back (frame attribute)
1636-
single: f_generator (frame attribute)
16371636
single: f_code (frame attribute)
16381637
single: f_globals (frame attribute)
16391638
single: f_locals (frame attribute)
16401639
single: f_lasti (frame attribute)
16411640
single: f_builtins (frame attribute)
1641+
single: f_generator (frame attribute)
16421642

16431643
Special read-only attributes
16441644
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1649,10 +1649,6 @@ Special read-only attributes
16491649
- Points to the previous stack frame (towards the caller),
16501650
or ``None`` if this is the bottom stack frame
16511651

1652-
* - .. attribute:: frame.f_generator
1653-
- Returns the generator or coroutine object that owns this frame,
1654-
or ``None`` if the frame is of a regular function.
1655-
16561652
* - .. attribute:: frame.f_code
16571653
- The :ref:`code object <code-objects>` being executed in this frame.
16581654
Accessing this attribute raises an :ref:`auditing event <auditing>`
@@ -1679,6 +1675,10 @@ Special read-only attributes
16791675
- The "precise instruction" of the frame object
16801676
(this is an index into the :term:`bytecode` string of the
16811677
:ref:`code object <code-objects>`)
1678+
1679+
* - .. attribute:: frame.f_generator
1680+
- Returns the generator or coroutine object that owns this frame,
1681+
or ``None`` if the frame is of a regular function.
16821682

16831683
.. index::
16841684
single: f_trace (frame attribute)

0 commit comments

Comments
 (0)