Skip to content

Commit d012237

Browse files
authored
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
1 parent cd9a56c commit d012237

33 files changed

+65
-69
lines changed

Doc/c-api/exceptions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ Signal Handling
602602
.. c:function:: int PyErr_CheckSignals()
603603
604604
.. index::
605-
module: signal
605+
pair: module; signal
606606
single: SIGINT
607607
single: KeyboardInterrupt (built-in exception)
608608
@@ -633,7 +633,7 @@ Signal Handling
633633
.. c:function:: void PyErr_SetInterrupt()
634634
635635
.. index::
636-
module: signal
636+
pair: module; signal
637637
single: SIGINT
638638
single: KeyboardInterrupt (built-in exception)
639639
@@ -648,7 +648,7 @@ Signal Handling
648648
.. c:function:: int PyErr_SetInterruptEx(int signum)
649649
650650
.. index::
651-
module: signal
651+
pair: module; signal
652652
single: KeyboardInterrupt (built-in exception)
653653
654654
Simulate the effect of a signal arriving. The next time

Doc/c-api/init.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,9 @@ Initializing and finalizing the interpreter
336336
single: PyEval_InitThreads()
337337
single: modules (in module sys)
338338
single: path (in module sys)
339-
module: builtins
340-
module: __main__
341-
module: sys
339+
pair: module; builtins
340+
pair: module; __main__
341+
pair: module; sys
342342
triple: module; search; path
343343
single: PySys_SetArgv()
344344
single: PySys_SetArgvEx()
@@ -1051,7 +1051,7 @@ code, or when embedding the Python interpreter:
10511051
10521052
.. deprecated:: 3.9
10531053
1054-
.. index:: module: _thread
1054+
.. index:: pair: module; _thread
10551055
10561056
10571057
.. c:function:: int PyEval_ThreadsInitialized()
@@ -1494,9 +1494,9 @@ function. You can create and destroy them using the following functions:
14941494
.. c:function:: PyThreadState* Py_NewInterpreter()
14951495
14961496
.. index::
1497-
module: builtins
1498-
module: __main__
1499-
module: sys
1497+
pair: module; builtins
1498+
pair: module; __main__
1499+
pair: module; sys
15001500
single: stdout (in module sys)
15011501
single: stderr (in module sys)
15021502
single: stdin (in module sys)

Doc/c-api/intro.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,9 @@ interpreter can only be used after the interpreter has been initialized.
705705

706706
.. index::
707707
single: Py_Initialize()
708-
module: builtins
709-
module: __main__
710-
module: sys
708+
pair: module; builtins
709+
pair: module; __main__
710+
pair: module; sys
711711
triple: module; search; path
712712
single: path (in module sys)
713713

Doc/library/_thread.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ In addition to these methods, lock objects can also be used via the
208208

209209
**Caveats:**
210210

211-
.. index:: module: signal
211+
.. index:: pair: module; signal
212212

213213
* Threads interact strangely with interrupts: the :exc:`KeyboardInterrupt`
214214
exception will be received by an arbitrary thread. (When the :mod:`signal`

Doc/library/binascii.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
representations.
77

88
.. index::
9-
module: uu
10-
module: base64
9+
pair: module; uu
10+
pair: module; base64
1111

1212
--------------
1313

Doc/library/cmath.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ Constants
301301
.. versionadded:: 3.6
302302

303303

304-
.. index:: module: math
304+
.. index:: pair: module; math
305305

306306
Note that the selection of functions is similar, but not identical, to that in
307307
module :mod:`math`. The reason for having two modules is that some users aren't

Doc/library/copy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Shallow copies of dictionaries can be made using :meth:`dict.copy`, and
6868
of lists by assigning a slice of the entire list, for example,
6969
``copied_list = original_list[:]``.
7070

71-
.. index:: module: pickle
71+
.. index:: pair: module; pickle
7272

7373
Classes can use the same interfaces to control copying that they use to control
7474
pickling. See the description of module :mod:`pickle` for information on these

Doc/library/copyreg.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
**Source code:** :source:`Lib/copyreg.py`
88

99
.. index::
10-
module: pickle
11-
module: copy
10+
pair: module; pickle
11+
pair: module; copy
1212

1313
--------------
1414

Doc/library/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ The following exceptions are the exceptions that are usually raised.
318318
.. exception:: OSError([arg])
319319
OSError(errno, strerror[, filename[, winerror[, filename2]]])
320320

321-
.. index:: module: errno
321+
.. index:: pair: module; errno
322322

323323
This exception is raised when a system function returns a system-related
324324
error, including I/O failures such as "file not found" or "disk full"

Doc/library/fnmatch.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
.. index:: single: filenames; wildcard expansion
1010

11-
.. index:: module: re
11+
.. index:: pair: module; re
1212

1313
--------------
1414

@@ -38,7 +38,7 @@ special characters used in shell-style wildcards are:
3838
For a literal match, wrap the meta-characters in brackets.
3939
For example, ``'[?]'`` matches the character ``'?'``.
4040

41-
.. index:: module: glob
41+
.. index:: pair: module; glob
4242

4343
Note that the filename separator (``'/'`` on Unix) is *not* special to this
4444
module. See module :mod:`glob` for pathname expansion (:mod:`glob` uses

0 commit comments

Comments
 (0)