From: Martin Panter Date: Sun, 11 Dec 2016 03:51:44 +0000 (+0000) Subject: Issue #28916: No special case for leading zeros with %x alternative form X-Git-Tag: v2.7.14rc1~340 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3eb92e06df22f8a7f2c8a021094b106d9ef77b34;p=python Issue #28916: No special case for leading zeros with %x alternative form --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 9f5255a58a..be2803239b 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1551,9 +1551,7 @@ Notes: (2) The alternate form causes a leading ``'0x'`` or ``'0X'`` (depending on whether - the ``'x'`` or ``'X'`` format was used) to be inserted between left-hand padding - and the formatting of the number if the leading character of the result is not - already a zero. + the ``'x'`` or ``'X'`` format was used) to be inserted before the first digit. (3) The alternate form causes the result to always contain a decimal point, even if