[Python-checkins] cpython (merge 3.5 -> default): Merge with 3.5
terry.reedy
python-checkins at python.org
Sun Mar 20 21:16:41 EDT 2016
https://hg.python.org/cpython/rev/701b2f8e206c
changeset: 100631:701b2f8e206c
parent: 100625:e86cd4a872b8
parent: 100630:34cbc5d8a173
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Sun Mar 20 21:06:15 2016 -0400
summary:
Merge with 3.5
files:
Doc/library/string.rst | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -331,7 +331,8 @@
| ``'='`` | 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 @@
*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 ``'='``.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list