diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2023-05-04 08:17:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 08:17:12 (GMT) |
commit | d0122372f2acb4cc56b89ab8c577ff9039d17d89 (patch) | |
tree | f50db57b34be236de4b6c7a829897d932468fbaf /Doc/tutorial | |
parent | cd9a56c2b0e14f56f2e83dd4db43c5c69a74b232 (diff) | |
download | cpython-d0122372f2acb4cc56b89ab8c577ff9039d17d89.zip cpython-d0122372f2acb4cc56b89ab8c577ff9039d17d89.tar.gz cpython-d0122372f2acb4cc56b89ab8c577ff9039d17d89.tar.bz2 |
GH-97950: Use new-style index directive ('module') (#103996)
* Use new-style index directive ('module') - C API
* Use new-style index directive ('module') - Library
* Use new-style index directive ('module') - Reference
* Use new-style index directive ('module') - Tutorial
* Uncomment module removal in pairindextypes
* Use new-style index directive ('module') - C API
* Use new-style index directive ('module') - Library
* Use new-style index directive ('module') - Reference
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/inputoutput.rst | 2 | ||||
-rw-r--r-- | Doc/tutorial/modules.rst | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 3581b37..aeacc15 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -466,7 +466,7 @@ Reference for a complete guide to file objects. Saving structured data with :mod:`json` --------------------------------------- -.. index:: module: json +.. index:: pair: module; json Strings can easily be written to and read from a file. Numbers take a bit more effort, since the :meth:`read` method only returns strings, which will have to diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst index 4daafa4..3bd034b 100644 --- a/Doc/tutorial/modules.rst +++ b/Doc/tutorial/modules.rst @@ -264,7 +264,7 @@ Some tips for experts: Standard Modules ================ -.. index:: module: sys +.. index:: pair: module; sys Python comes with a library of standard modules, described in a separate document, the Python Library Reference ("Library Reference" hereafter). Some @@ -345,7 +345,7 @@ Without arguments, :func:`dir` lists the names you have defined currently:: Note that it lists all types of names: variables, modules, functions, etc. -.. index:: module: builtins +.. index:: pair: module; builtins :func:`dir` does not list the names of built-in functions and variables. If you want a list of those, they are defined in the standard module |