Skip to content
Prev Previous commit
Use new-style index directive ('module') - Reference
  • Loading branch information
AA-Turner committed May 4, 2023
commit cc7c8194a9aeedf0520cacc52c41c686480eee51
2 changes: 1 addition & 1 deletion Doc/reference/compound_stmts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ traceback attached to them, they form a reference cycle with the stack frame,
keeping all locals in that frame alive until the next garbage collection occurs.

.. index::
module: sys
pair: module; sys
object: traceback

Before an :keyword:`!except` clause's suite is executed,
Expand Down
6 changes: 3 additions & 3 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ Mappings
section :ref:`dict`).

.. index::
module: dbm.ndbm
module: dbm.gnu
pair: module; dbm.ndbm
pair: module; dbm.gnu

The extension modules :mod:`dbm.ndbm` and :mod:`dbm.gnu` provide
additional examples of mapping types, as does the :mod:`collections`
Expand Down Expand Up @@ -909,7 +909,7 @@ Class instances
I/O objects (also known as file objects)
.. index::
builtin: open
module: io
pair: module; io
single: popen() (in module os)
single: makefile() (socket method)
single: sys.stdin
Expand Down
8 changes: 4 additions & 4 deletions Doc/reference/toplevel_components.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Complete Python programs
.. index:: single: program

.. index::
module: sys
module: __main__
module: builtins
pair: module; sys
pair: module; __main__
pair: module; builtins

While a language specification need not prescribe how the language interpreter
is invoked, it is useful to have a notion of a complete Python program. A
Expand All @@ -38,7 +38,7 @@ the next section.

.. index::
single: interactive mode
module: __main__
pair: module; __main__

The interpreter may also be invoked in interactive mode; in this case, it does
not read and execute a complete program but reads and executes one statement
Expand Down