diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-03-21 01:06:15 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-03-21 01:06:15 (GMT) |
commit | 370764a824aa7ee9faaf6f69d5c2ed2f487e11dc (patch) | |
tree | e1730e9f2105fb1618930323e81a6d7e14153b21 | |
parent | a051bf3afbb30b7ddb7bd4c7ba03acc63288d6f2 (diff) | |
parent | 4902c46bff57f17b72cf68e8fafcc3f9b0df6f3c (diff) | |
download | cpython-370764a824aa7ee9faaf6f69d5c2ed2f487e11dc.zip cpython-370764a824aa7ee9faaf6f69d5c2ed2f487e11dc.tar.gz cpython-370764a824aa7ee9faaf6f69d5c2ed2f487e11dc.tar.bz2 |
Merge with 3.5
-rw-r--r-- | Doc/library/string.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst index cda8e86..4eb2db4 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -331,7 +331,8 @@ The meaning of the various alignment options is as follows: | ``'='`` | Forces the padding to be placed after the sign (if any) | | | but before the digits. This is used for printing fields | | | in the form '+000000120'. This alignment option is only | - | | valid for numeric types. | + | | valid for numeric types. It becomes the default when '0'| + | | immediately precedes the field width. | +---------+----------------------------------------------------------+ | ``'^'`` | Forces the field to be centered within the available | | | space. | @@ -380,7 +381,8 @@ instead. *width* is a decimal integer defining the minimum field width. If not specified, then the field width will be determined by the content. -Preceding the *width* field by a zero (``'0'``) character enables +When no explicit alignment is given, preceding the *width* field by a zero +(``'0'``) character enables sign-aware zero-padding for numeric types. This is equivalent to a *fill* character of ``'0'`` with an *alignment* type of ``'='``. |