Skip to content

Commit 5b2e1cf

Browse files
[3.6] bpo-35054: Add yet more index entries for symbols. (GH-10121). (GH-10182)
(cherry picked from commit 913876d)
1 parent f29bded commit 5b2e1cf

30 files changed

+223
-190
lines changed

Doc/library/argparse.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,8 @@ values are:
844844
Note that ``nargs=1`` produces a list of one item. This is different from
845845
the default, in which the item is produced by itself.
846846

847+
.. index:: single: ? (question mark); in argparse module
848+
847849
* ``'?'``. One argument will be consumed from the command line if possible, and
848850
produced as a single item. If no command-line argument is present, the value from
849851
default_ will be produced. Note that for optional arguments, there is an
@@ -876,6 +878,8 @@ values are:
876878
Namespace(infile=<_io.TextIOWrapper name='<stdin>' encoding='UTF-8'>,
877879
outfile=<_io.TextIOWrapper name='<stdout>' encoding='UTF-8'>)
878880

881+
.. index:: single: * (asterisk); in argparse module
882+
879883
* ``'*'``. All command-line arguments present are gathered into a list. Note that
880884
it generally doesn't make much sense to have more than one positional argument
881885
with ``nargs='*'``, but multiple optional arguments with ``nargs='*'`` is
@@ -888,6 +892,8 @@ values are:
888892
>>> parser.parse_args('a b --foo x y --bar 1 2'.split())
889893
Namespace(bar=['1', '2'], baz=['a', 'b'], foo=['x', 'y'])
890894

895+
.. index:: single: + (plus); in argparse module
896+
891897
* ``'+'``. Just like ``'*'``, all command-line args present are gathered into a
892898
list. Additionally, an error message will be generated if there wasn't at
893899
least one command-line argument present. For example::

Doc/library/ast.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ Node classes
4141
with alternatives (aka "sums"), the left-hand side class is abstract: only
4242
instances of specific constructor nodes are ever created.
4343

44+
.. index:: single: ? (question mark); in AST grammar
45+
.. index:: single: * (asterisk); in AST grammar
46+
4447
.. attribute:: _fields
4548

4649
Each concrete class has an attribute :attr:`_fields` which gives the names

Doc/library/cmd.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ A :class:`Cmd` instance has the following methods:
6161

6262
An end-of-file on input is passed back as the string ``'EOF'``.
6363

64+
.. index::
65+
single: ? (question mark); in a command interpreter
66+
single: ! (exclamation); in a command interpreter
67+
6468
An interpreter instance will recognize a command name ``foo`` if and only if it
6569
has a method :meth:`do_foo`. As a special case, a line beginning with the
6670
character ``'?'`` is dispatched to the method :meth:`do_help`. As another

Doc/library/codecs.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,14 @@ defined and implemented by all standard Python codecs:
312312
The following error handlers are only applicable to
313313
:term:`text encodings <text encoding>`:
314314

315+
.. index::
316+
single: ? (question mark); replacement character
317+
single: \ (backslash); escape sequence
318+
single: \x; escape sequence
319+
single: \u; escape sequence
320+
single: \U; escape sequence
321+
single: \N; escape sequence
322+
315323
+-------------------------+-----------------------------------------------+
316324
| Value | Meaning |
317325
+=========================+===============================================+

Doc/library/configparser.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ On top of the core functionality, :class:`ConfigParser` supports
291291
interpolation. This means values can be preprocessed before returning them
292292
from ``get()`` calls.
293293

294-
.. index:: single: %; interpolation in configuration files
294+
.. index:: single: % (percent); interpolation in configuration files
295295

296296
.. class:: BasicInterpolation()
297297

@@ -321,7 +321,7 @@ from ``get()`` calls.
321321
``%(my_dir)s/Pictures`` as the value of ``my_pictures`` and
322322
``%(home_dir)s/lumberjack`` as the value of ``my_dir``.
323323

324-
.. index:: single: $; interpolation in configuration files
324+
.. index:: single: $ (dollar); interpolation in configuration files
325325

326326
.. class:: ExtendedInterpolation()
327327

Doc/library/curses.ascii.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ The following function takes either a single-character string or integer value;
207207
it returns a string.
208208

209209

210+
.. index::
211+
single: ^ (caret); in curses module
212+
single: ! (exclamation); in curses module
213+
210214
.. function:: unctrl(c)
211215

212216
Return a string representation of the ASCII character *c*. If *c* is printable,

Doc/library/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,7 @@ Class attributes:
19281928

19291929

19301930
.. index::
1931-
single: %; datetime format
1931+
single: % (percent); datetime format
19321932

19331933
.. _strftime-strptime-behavior:
19341934

Doc/library/doctest.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ Some details you should read once, but won't need to remember:
485485
to test a :exc:`SyntaxError` that omits the traceback header, you will need to
486486
manually add the traceback header line to your test example.
487487

488-
.. index:: single: ^; caret
488+
.. index:: single: ^ (caret); marker
489489

490490
* For some :exc:`SyntaxError`\ s, Python displays the character position of the
491491
syntax error, using a ``^`` marker::
@@ -695,9 +695,9 @@ useful unless you intend to extend :mod:`doctest` internals via subclassing:
695695

696696

697697
.. index::
698-
single: #; in doctests
699-
single: +; in doctests
700-
single: -; in doctests
698+
single: # (hash); in doctests
699+
single: + (plus); in doctests
700+
single: - (minus); in doctests
701701
.. _doctest-directives:
702702

703703
Directives

Doc/library/fnmatch.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ This module provides support for Unix shell-style wildcards, which are *not* the
1616
same as regular expressions (which are documented in the :mod:`re` module). The
1717
special characters used in shell-style wildcards are:
1818

19+
.. index::
20+
single: * (asterisk); in glob-style wildcards
21+
single: ? (question mark); in glob-style wildcards
22+
single: [] (square brackets); in glob-style wildcards
23+
single: ! (exclamation); in glob-style wildcards
24+
single: - (minus); in glob-style wildcards
25+
1926
+------------+------------------------------------+
2027
| Pattern | Meaning |
2128
+============+====================================+

Doc/library/gettext.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class-based API instead.
6161
*domain*, which is returned.
6262

6363

64-
.. index:: single: _; gettext
64+
.. index:: single: _ (underscore); gettext
6565
.. function:: gettext(message)
6666

6767
Return the localized translation of *message*, based on the current global

0 commit comments

Comments
 (0)