[Python-checkins] cpython (2.7): Issue #28916: No special case for leading zeros with %x alternative form
martin.panter
python-checkins at python.org
Sat Dec 10 23:10:45 EST 2016
https://hg.python.org/cpython/rev/8359ee62dde3
changeset: 105586:8359ee62dde3
branch: 2.7
parent: 105516:e414fb1640e0
user: Martin Panter <vadmium+py at gmail.com>
date: Sun Dec 11 03:51:44 2016 +0000
summary:
Issue #28916: No special case for leading zeros with %x alternative form
files:
Doc/library/stdtypes.rst | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1551,9 +1551,7 @@
(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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list