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 Alex.Leone
Recipients Alex.Leone
Date 2010-12-05.23:40:47
SpamBayes Score 0.0046909093
Marked as misclassified No
Message-id <1291592451.76.0.667940420778.issue10633@psf.upfronthosting.co.za>
In-reply-to
Content
When using the '#' to prefix a numeric argument in format() with a '0x' or others, the 0-width padding takes into account the '0x' characters.  This is unexpected - the 0-width should NOT take into account the prefix.

Current Behavior:
> "{0:#02x}".format(10)
'0xa'

Expected Output:
> "{0:#02x}".format(10)
'0x0a'

(note that the '0a' is two characters long, as it should be)
History
Date User Action Args
2010-12-05 23:40:51Alex.Leonesetrecipients: + Alex.Leone
2010-12-05 23:40:51Alex.Leonesetmessageid: <1291592451.76.0.667940420778.issue10633@psf.upfronthosting.co.za>
2010-12-05 23:40:47Alex.Leonelinkissue10633 messages
2010-12-05 23:40:47Alex.Leonecreate