Author eric.smith
Recipients Gavin.Andresen, davide.rizzo, eric.smith, ezio.melotti, flox, python-dev, vstinner
Date 2014-05-19.15:15:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400512504.8.0.401769919752.issue12546@psf.upfronthosting.co.za>
In-reply-to
Content
For int, the spec is:
[[fill]align][sign][#][0][width][,][.precision][type]

So, for "06d", "0" is matched as the literal 0, "6" is matched as width, and "d" is matched as type.

For "\x00<6d", "\x00" is matched as fill, "<" as align, "6" as width, and "d" as type.

For "\x006d", there's no align. So "\x00" cannot match as fill. "\x00" doesn't match anything else, so it's an invalid format specifier, thus the exception.
History
Date User Action Args
2014-05-19 15:15:04eric.smithsetrecipients: + eric.smith, vstinner, ezio.melotti, flox, davide.rizzo, python-dev, Gavin.Andresen
2014-05-19 15:15:04eric.smithsetmessageid: <1400512504.8.0.401769919752.issue12546@psf.upfronthosting.co.za>
2014-05-19 15:15:04eric.smithlinkissue12546 messages
2014-05-19 15:15:04eric.smithcreate