Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e825b4e

Browse files
[3.6] bpo-35054: Add more index entries for symbols. (GH-10064). (GH-10119)
(cherry picked from commit ddb961d) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 3b87151 commit e825b4e

26 files changed

Lines changed: 471 additions & 68 deletions

Doc/library/configparser.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ 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
295+
294296
.. class:: BasicInterpolation()
295297

296298
The default implementation used by :class:`ConfigParser`. It enables
@@ -319,6 +321,8 @@ from ``get()`` calls.
319321
``%(my_dir)s/Pictures`` as the value of ``my_pictures`` and
320322
``%(home_dir)s/lumberjack`` as the value of ``my_dir``.
321323

324+
.. index:: single: $; interpolation in configuration files
325+
322326
.. class:: ExtendedInterpolation()
323327

324328
An alternative handler for interpolation which implements a more advanced

Doc/library/constants.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ A small number of constants live in the built-in namespace. They are:
5151
See :exc:`NotImplementedError` for details on when to use it.
5252

5353

54+
.. index:: single: ...; ellipsis literal
5455
.. data:: Ellipsis
5556

56-
The same as ``...``. Special value used mostly in conjunction with extended
57-
slicing syntax for user-defined container data types.
57+
The same as the ellipsis literal "``...``". Special value used mostly in conjunction
58+
with extended slicing syntax for user-defined container data types.
5859

5960

6061
.. data:: __debug__

Doc/library/datetime.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,6 +1927,9 @@ Class attributes:
19271927
The UTC timezone, ``timezone(timedelta(0))``.
19281928

19291929

1930+
.. index::
1931+
single: %; datetime format
1932+
19301933
.. _strftime-strptime-behavior:
19311934

19321935
:meth:`strftime` and :meth:`strptime` Behavior

Doc/library/doctest.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,10 @@ but doctest isn't trying to do an exact emulation of any specific Python shell.
321321
NO!!!
322322
>>>
323323

324+
.. index::
325+
single: >>>; interpreter prompt
326+
single: ...; interpreter prompt
327+
324328
Any expected output must immediately follow the final ``'>>> '`` or ``'... '``
325329
line containing the code, and the expected output (if any) extends to the next
326330
``'>>> '`` or all-whitespace line.
@@ -481,6 +485,8 @@ Some details you should read once, but won't need to remember:
481485
to test a :exc:`SyntaxError` that omits the traceback header, you will need to
482486
manually add the traceback header line to your test example.
483487

488+
.. index:: single: ^; caret
489+
484490
* For some :exc:`SyntaxError`\ s, Python displays the character position of the
485491
syntax error, using a ``^`` marker::
486492

@@ -532,6 +538,7 @@ doctest decides whether actual output matches an example's expected output:
532538
option will probably go away, but not for several years.
533539

534540

541+
.. index:: single: <BLANKLINE>
535542
.. data:: DONT_ACCEPT_BLANKLINE
536543

537544
By default, if an expected output block contains a line containing only the
@@ -551,6 +558,7 @@ doctest decides whether actual output matches an example's expected output:
551558
your source.
552559

553560

561+
.. index:: single: ...; in doctests
554562
.. data:: ELLIPSIS
555563

556564
When specified, an ellipsis marker (``...``) in the expected output can match
@@ -686,6 +694,10 @@ useful unless you intend to extend :mod:`doctest` internals via subclassing:
686694
MY_FLAG = register_optionflag('MY_FLAG')
687695

688696

697+
.. index::
698+
single: #; in doctests
699+
single: +; in doctests
700+
single: -; in doctests
689701
.. _doctest-directives:
690702

691703
Directives

Doc/library/gettext.rst

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

6363

64+
.. index:: single: _; gettext
6465
.. function:: gettext(message)
6566

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

Doc/library/os.path.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ the :mod:`glob` module.)
152152
Accepts a :term:`path-like object`.
153153

154154

155+
.. index:: single: ~; home directory expansion
156+
155157
.. function:: expanduser(path)
156158

157159
On Unix and Windows, return the argument with an initial component of ``~`` or
@@ -175,6 +177,9 @@ the :mod:`glob` module.)
175177
.. versionchanged:: 3.6
176178
Accepts a :term:`path-like object`.
177179

180+
.. index::
181+
single: $; environment variables expansion
182+
single: %; environment variables expansion (Windows)
178183

179184
.. function:: expandvars(path)
180185

Doc/library/os.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3867,20 +3867,24 @@ are defined for all platforms.
38673867
Higher-level operations on pathnames are defined in the :mod:`os.path` module.
38683868

38693869

3870+
.. index:: single: .; in pathnames
38703871
.. data:: curdir
38713872

38723873
The constant string used by the operating system to refer to the current
38733874
directory. This is ``'.'`` for Windows and POSIX. Also available via
38743875
:mod:`os.path`.
38753876

38763877

3878+
.. index:: single: ..; in pathnames
38773879
.. data:: pardir
38783880

38793881
The constant string used by the operating system to refer to the parent
38803882
directory. This is ``'..'`` for Windows and POSIX. Also available via
38813883
:mod:`os.path`.
38823884

38833885

3886+
.. index:: single: /; in pathnames
3887+
.. index:: single: \; in pathnames (Windows)
38843888
.. data:: sep
38853889

38863890
The character used by the operating system to separate pathname components.
@@ -3890,6 +3894,7 @@ Higher-level operations on pathnames are defined in the :mod:`os.path` module.
38903894
useful. Also available via :mod:`os.path`.
38913895

38923896

3897+
.. index:: single: /; in pathnames
38933898
.. data:: altsep
38943899

38953900
An alternative character used by the operating system to separate pathname
@@ -3898,12 +3903,14 @@ Higher-level operations on pathnames are defined in the :mod:`os.path` module.
38983903
:mod:`os.path`.
38993904

39003905

3906+
.. index:: single: .; in pathnames
39013907
.. data:: extsep
39023908

39033909
The character which separates the base filename from the extension; for example,
39043910
the ``'.'`` in :file:`os.py`. Also available via :mod:`os.path`.
39053911

39063912

3913+
.. index:: single: :; path separator (POSIX)
39073914
.. data:: pathsep
39083915

39093916
The character conventionally used by the operating system to separate search

0 commit comments

Comments
 (0)