]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue 15660: Clarify 0 prefix for width field in str.format doc.
authorTerry Jan Reedy <tjreedy@udel.edu>
Fri, 17 Aug 2012 19:40:46 +0000 (15:40 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Fri, 17 Aug 2012 19:40:46 +0000 (15:40 -0400)
Doc/library/string.rst

index fc0bd2449b1a2e623be0a0e311971f73d3c86ded..aed191b748e1b036307fc07dafc16b2760e2da46 100644 (file)
@@ -368,9 +368,9 @@ instead.
 *width* is a decimal integer defining the minimum field width.  If not
 specified, then the field width will be determined by the content.
 
-If the *width* field is preceded by a zero (``'0'``) character, this enables
-zero-padding.  This is equivalent to an *alignment* type of ``'='`` and a *fill*
-character of ``'0'``.
+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 ``'='``.
 
 The *precision* is a decimal number indicating how many digits should be
 displayed after the decimal point for a floating point value formatted with