Skip to content
Prev Previous commit
Next Next commit
Use new-style index directive ('module') - Library
  • Loading branch information
AA-Turner committed May 4, 2023
commit 1e6b15774ff2145b760930f577f6505f14596097
4 changes: 2 additions & 2 deletions Doc/library/binascii.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
representations.

.. index::
module: uu
module: base64
pair: module; uu
pair: module; base64

--------------

Expand Down
4 changes: 2 additions & 2 deletions Doc/library/copyreg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
**Source code:** :source:`Lib/copyreg.py`

.. index::
module: pickle
module: copy
pair: module; pickle
pair: module; copy

--------------

Expand Down
4 changes: 2 additions & 2 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ are always available. They are listed here in alphabetical order.
single: I/O control; buffering
single: binary mode
single: text mode
module: sys
pair: module; sys

See also the file handling modules, such as :mod:`fileinput`, :mod:`io`
(where :func:`open` is declared), :mod:`os`, :mod:`os.path`, :mod:`tempfile`,
Expand Down Expand Up @@ -1987,7 +1987,7 @@ are always available. They are listed here in alphabetical order.

.. index::
statement: import
module: builtins
pair: module; builtins

.. note::

Expand Down
4 changes: 2 additions & 2 deletions Doc/library/marshal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ undocumented on purpose; it may change between Python versions (although it
rarely does). [#]_

.. index::
module: pickle
module: shelve
pair: module; pickle
pair: module; shelve

This is not a general "persistence" module. For general persistence and
transfer of Python objects through RPC calls, see the modules :mod:`pickle` and
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/pdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ supports post-mortem debugging and can be called under program control.

.. index::
single: Pdb (class in pdb)
module: bdb
module: cmd
pair: module; bdb
pair: module; cmd

The debugger is extensible -- it is actually defined as the class :class:`Pdb`.
This is currently undocumented but easily understood by reading the source. The
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/runpy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The :mod:`runpy` module provides two functions:
.. function:: run_module(mod_name, init_globals=None, run_name=None, alter_sys=False)

.. index::
module: __main__
pair: module; __main__

Execute the code of the specified module and return the resulting module
globals dictionary. The module's code is first located using the standard
Expand Down Expand Up @@ -101,7 +101,7 @@ The :mod:`runpy` module provides two functions:
.. function:: run_path(path_name, init_globals=None, run_name=None)

.. index::
module: __main__
pair: module; __main__

Execute the code at the named filesystem location and return the resulting
module globals dictionary. As with a script name supplied to the CPython
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/shelve.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ Restrictions
------------

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

* The choice of which database package will be used (such as :mod:`dbm.ndbm` or
:mod:`dbm.gnu`) depends on which interface is available. Therefore it is not
Expand Down
8 changes: 4 additions & 4 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ Notes:

(3)
.. index::
module: math
pair: module; math
single: floor() (in module math)
single: ceil() (in module math)
single: trunc() (in module math)
Expand Down Expand Up @@ -1600,7 +1600,7 @@ String Methods
--------------

.. index::
module: re
pair: module; re

Strings implement all of the :ref:`common <typesseq-common>` sequence
operations, along with the additional methods described below.
Expand Down Expand Up @@ -2511,7 +2511,7 @@ Binary Sequence Types --- :class:`bytes`, :class:`bytearray`, :class:`memoryview
object: bytes
object: bytearray
object: memoryview
module: array
pair: module; array

The core built-in types for manipulating binary data are :class:`bytes` and
:class:`bytearray`. They are supported by :class:`memoryview` which uses
Expand Down Expand Up @@ -5378,7 +5378,7 @@ Type Objects

.. index::
builtin: type
module: types
pair: module; types

Type objects represent the various object types. An object's type is accessed
by the built-in function :func:`type`. There are no special operations on
Expand Down