bpo-38657: Clarify numeric padding behaviour in string formatting (GH-17036)
Make the definition of the width more explicit that it includes any extra signs added by other options. https://bugs.python.org/issue38657 Automerge-Triggered-By: @Mariatta
This commit is contained in:
parent
933fc53f3f
commit
424e5686d8
|
@ -415,8 +415,9 @@ error.
|
||||||
.. versionchanged:: 3.6
|
.. versionchanged:: 3.6
|
||||||
Added the ``'_'`` option (see also :pep:`515`).
|
Added the ``'_'`` option (see also :pep:`515`).
|
||||||
|
|
||||||
*width* is a decimal integer defining the minimum field width. If not
|
*width* is a decimal integer defining the minimum total field width,
|
||||||
specified, then the field width will be determined by the content.
|
including any prefixes, separators, and other formatting characters.
|
||||||
|
If not specified, then the field width will be determined by the content.
|
||||||
|
|
||||||
When no explicit alignment is given, preceding the *width* field by a zero
|
When no explicit alignment is given, preceding the *width* field by a zero
|
||||||
(``'0'``) character enables
|
(``'0'``) character enables
|
||||||
|
|
Loading…
Reference in New Issue