Skip to content

Commit 0056369

Browse files
authored
[3.11] GH-97950: Use new-style index directive ('module') (GH-103996) (#104154)
1 parent 8f94c94 commit 0056369

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
@@ -543,7 +543,7 @@ Signal Handling
543543
.. c:function:: int PyErr_CheckSignals()
544544
545545
.. index::
546-
module: signal
546+
pair: module; signal
547547
single: SIGINT
548548
single: KeyboardInterrupt (built-in exception)
549549
@@ -574,7 +574,7 @@ Signal Handling
574574
.. c:function:: void PyErr_SetInterrupt()
575575
576576
.. index::
577-
module: signal
577+
pair: module; signal
578578
single: SIGINT
579579
single: KeyboardInterrupt (built-in exception)
580580
@@ -589,7 +589,7 @@ Signal Handling
589589
.. c:function:: int PyErr_SetInterruptEx(int signum)
590590
591591
.. index::
592-
module: signal
592+
pair: module; signal
593593
single: KeyboardInterrupt (built-in exception)
594594
595595
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
@@ -233,9 +233,9 @@ Initializing and finalizing the interpreter
233233
single: PyEval_InitThreads()
234234
single: modules (in module sys)
235235
single: path (in module sys)
236-
module: builtins
237-
module: __main__
238-
module: sys
236+
pair: module; builtins
237+
pair: module; __main__
238+
pair: module; sys
239239
triple: module; search; path
240240
single: PySys_SetArgv()
241241
single: PySys_SetArgvEx()
@@ -942,7 +942,7 @@ code, or when embedding the Python interpreter:
942942
943943
.. deprecated:: 3.9
944944
945-
.. index:: module: _thread
945+
.. index:: pair: module; _thread
946946
947947
948948
.. c:function:: int PyEval_ThreadsInitialized()
@@ -1385,9 +1385,9 @@ function. You can create and destroy them using the following functions:
13851385
.. c:function:: PyThreadState* Py_NewInterpreter()
13861386
13871387
.. index::
1388-
module: builtins
1389-
module: __main__
1390-
module: sys
1388+
pair: module; builtins
1389+
pair: module; __main__
1390+
pair: module; sys
13911391
single: stdout (in module sys)
13921392
single: stderr (in module sys)
13931393
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
@@ -206,7 +206,7 @@ In addition to these methods, lock objects can also be used via the
206206

207207
**Caveats:**
208208

209-
.. index:: module: signal
209+
.. index:: pair: module; signal
210210

211211
* Threads interact strangely with interrupts: the :exc:`KeyboardInterrupt`
212212
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)