Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Doc/library/configparser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ On top of the core functionality, :class:`ConfigParser` supports
interpolation. This means values can be preprocessed before returning them
from ``get()`` calls.

.. index:: single: %; interpolation in configuration files

.. class:: BasicInterpolation()

The default implementation used by :class:`ConfigParser`. It enables
Expand Down Expand Up @@ -323,6 +325,8 @@ from ``get()`` calls.
``%(my_dir)s/Pictures`` as the value of ``my_pictures`` and
``%(home_dir)s/lumberjack`` as the value of ``my_dir``.

.. index:: single: $; interpolation in configuration files

.. class:: ExtendedInterpolation()

An alternative handler for interpolation which implements a more advanced
Expand Down
5 changes: 3 additions & 2 deletions Doc/library/constants.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ A small number of constants live in the built-in namespace. They are:
See :exc:`NotImplementedError` for details on when to use it.


.. index:: single: ...; ellipsis literal
.. data:: Ellipsis

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


.. data:: __debug__
Expand Down
3 changes: 3 additions & 0 deletions Doc/library/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1999,6 +1999,9 @@ Class attributes:
The UTC timezone, ``timezone(timedelta(0))``.


.. index::
single: %; datetime format

.. _strftime-strptime-behavior:

:meth:`strftime` and :meth:`strptime` Behavior
Expand Down
12 changes: 12 additions & 0 deletions Doc/library/doctest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ but doctest isn't trying to do an exact emulation of any specific Python shell.
NO!!!
>>>

.. index::
single: >>>; interpreter prompt
single: ...; interpreter prompt

Any expected output must immediately follow the final ``'>>> '`` or ``'... '``
line containing the code, and the expected output (if any) extends to the next
``'>>> '`` or all-whitespace line.
Expand Down Expand Up @@ -481,6 +485,8 @@ Some details you should read once, but won't need to remember:
to test a :exc:`SyntaxError` that omits the traceback header, you will need to
manually add the traceback header line to your test example.

.. index:: single: ^; caret

* For some :exc:`SyntaxError`\ s, Python displays the character position of the
syntax error, using a ``^`` marker::

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


.. index:: single: <BLANKLINE>
.. data:: DONT_ACCEPT_BLANKLINE

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


.. index:: single: ...; in doctests
.. data:: ELLIPSIS

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


.. index::
single: #; in doctests
single: +; in doctests
single: -; in doctests
.. _doctest-directives:

Directives
Expand Down
1 change: 1 addition & 0 deletions Doc/library/gettext.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class-based API instead.
*domain*, which is returned.


.. index:: single: _; gettext
.. function:: gettext(message)

Return the localized translation of *message*, based on the current global
Expand Down
5 changes: 5 additions & 0 deletions Doc/library/os.path.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ the :mod:`glob` module.)
Accepts a :term:`path-like object`.


.. index:: single: ~; home directory expansion

.. function:: expanduser(path)

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

.. index::
single: $; environment variables expansion
single: %; environment variables expansion (Windows)

.. function:: expandvars(path)

Expand Down
7 changes: 7 additions & 0 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4012,20 +4012,24 @@ are defined for all platforms.
Higher-level operations on pathnames are defined in the :mod:`os.path` module.


.. index:: single: .; in pathnames
.. data:: curdir

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


.. index:: single: ..; in pathnames
.. data:: pardir

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


.. index:: single: /; in pathnames
.. index:: single: \; in pathnames (Windows)
.. data:: sep

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


.. index:: single: /; in pathnames
.. data:: altsep

An alternative character used by the operating system to separate pathname
Expand All @@ -4043,12 +4048,14 @@ Higher-level operations on pathnames are defined in the :mod:`os.path` module.
:mod:`os.path`.


.. index:: single: .; in pathnames
.. data:: extsep

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


.. index:: single: :; path separator (POSIX)
.. data:: pathsep

The character conventionally used by the operating system to separate search
Expand Down
Loading