diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-12-10 12:48:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-10 12:48:10 -0800 |
commit | b1f98d4c723f746cea9447d7fd9e341ee8da1371 (patch) | |
tree | e787620a1c89117dc0f102619b936faade510fb3 /Doc | |
parent | [3.6] bpo-35433: Properly detect installed SDK versions (GH-11009) (diff) | |
download | cpython-b1f98d4c723f746cea9447d7fd9e341ee8da1371.tar.gz cpython-b1f98d4c723f746cea9447d7fd9e341ee8da1371.tar.bz2 cpython-b1f98d4c723f746cea9447d7fd9e341ee8da1371.zip |
Fix numbered lists in stdtypes.rst. (GH-10989)
(cherry picked from commit de9e9b476ec4abfb0b9161cff0e86bb7085ca8c6)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/stdtypes.rst | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index eed37454bc3..00e1f4c1bf0 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2113,28 +2113,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 @@ -3229,28 +3227,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 |