Author Alex.Leone
Recipients Alex.Leone
Date 2010-12-05.23:40:47
SpamBayes Score 0.00469091
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