summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorAndre Delfino <adelfino@gmail.com>2018-12-09 07:00:20 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-12-09 07:00:20 (GMT)
commitde9e9b476ec4abfb0b9161cff0e86bb7085ca8c6 (patch)
tree7b4a56750be5d06f0a439b9ef466daebdb15c718 /Doc/library
parentac218bc5dbfabbd61c76ce8a17de088611e21981 (diff)
downloadcpython-de9e9b476ec4abfb0b9161cff0e86bb7085ca8c6.zip
cpython-de9e9b476ec4abfb0b9161cff0e86bb7085ca8c6.tar.gz
cpython-de9e9b476ec4abfb0b9161cff0e86bb7085ca8c6.tar.bz2
Fix numbered lists in stdtypes.rst. (GH-10989)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/stdtypes.rst24
1 files changed, 10 insertions, 14 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 6ddf41a..86e7d68 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2142,28 +2142,26 @@ object. [5]_ Otherwise, *values* must be a tuple with exactly the number of
items specified by the format string, or a single mapping object (for example, a
dictionary).
+.. index::
+ single: () (parentheses); in printf-style formatting
+ single: * (asterisk); in printf-style formatting
+ single: . (dot); in printf-style formatting
+
A conversion specifier contains two or more characters and has the following
components, which must occur in this order:
#. The ``'%'`` character, which marks the start of the specifier.
-.. index::
- single: () (parentheses); in printf-style formatting
-
#. Mapping key (optional), consisting of a parenthesised sequence of characters
(for example, ``(somename)``).
#. Conversion flags (optional), which affect the result of some conversion
types.
-.. index:: single: * (asterisk); in printf-style formatting
-
#. Minimum field width (optional). If specified as an ``'*'`` (asterisk), the
actual width is read from the next element of the tuple in *values*, and the
object to convert comes after the minimum field width and optional precision.
-.. index:: single: . (dot); in printf-style formatting
-
#. Precision (optional), given as a ``'.'`` (dot) followed by the precision. If
specified as ``'*'`` (an asterisk), the actual precision is read from the next
element of the tuple in *values*, and the value to convert comes after the
@@ -3276,28 +3274,26 @@ object. [5]_ Otherwise, *values* must be a tuple with exactly the number of
items specified by the format bytes object, or a single mapping object (for
example, a dictionary).
+.. index::
+ single: () (parentheses); in printf-style formatting
+ single: * (asterisk); in printf-style formatting
+ single: . (dot); in printf-style formatting
+
A conversion specifier contains two or more characters and has the following
components, which must occur in this order:
#. The ``'%'`` character, which marks the start of the specifier.
-.. index::
- single: () (parentheses); in printf-style formatting
-
#. Mapping key (optional), consisting of a parenthesised sequence of characters
(for example, ``(somename)``).
#. Conversion flags (optional), which affect the result of some conversion
types.
-.. index:: single: * (asterisk); in printf-style formatting
-
#. Minimum field width (optional). If specified as an ``'*'`` (asterisk), the
actual width is read from the next element of the tuple in *values*, and the
object to convert comes after the minimum field width and optional precision.
-.. index:: single: . (dot); in printf-style formatting
-
#. Precision (optional), given as a ``'.'`` (dot) followed by the precision. If
specified as ``'*'`` (an asterisk), the actual precision is read from the next
element of the tuple in *values*, and the value to convert comes after the