Message218797
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. |
|
Date |
User |
Action |
Args |
2014-05-19 15:15:04 | eric.smith | set | recipients:
+ eric.smith, vstinner, ezio.melotti, flox, davide.rizzo, python-dev, Gavin.Andresen |
2014-05-19 15:15:04 | eric.smith | set | messageid: <1400512504.8.0.401769919752.issue12546@psf.upfronthosting.co.za> |
2014-05-19 15:15:04 | eric.smith | link | issue12546 messages |
2014-05-19 15:15:04 | eric.smith | create | |
|