DAGDA SEARCH | Back to results | Support

Message 92586 - Python tracker

Source: https://bugs.python.org/msg92586

homepage

Message92586 ➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients eric.smith, mark.dickinson, skrah
Date 2009-09-13.23:36:42
SpamBayes Score 7.944364e-07
Marked as misclassified No
Message-id <1252885004.98.0.012153138281.issue6902@psf.upfronthosting.co.za>
In-reply-to
Content
Originally discussed in issue 6871. Even if an alignment of "<" is
specified, "=" is used if the padding character is "0".

>>> format(2, '0<20')
'00000000000000000002'
>>> format(2, '1<20')
'21111111111111111111'

This is a problem for at least float and integers.

This should probably be backported to 2.6 and 3.1, but I'll have to wait
and see how invasive the patch is.
History
Date User Action Args
2009-09-13 23:36:45eric.smithsetrecipients: + eric.smith, mark.dickinson, skrah
2009-09-13 23:36:44eric.smithsetmessageid: <1252885004.98.0.012153138281.issue6902@psf.upfronthosting.co.za>
2009-09-13 23:36:43eric.smithlinkissue6902 messages
2009-09-13 23:36:42eric.smithcreate
Supported by The Python Software Foundation,
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements