Message249884
I plucked the error message from the % operator:
>>> '%' % 'foo'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: incomplete format
>>> '%z' % 'foo'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: unsupported format character 'z' (0x7a) at index 1
That said, it should be more consistent. I went with the latter suggestion since it's more informative. An updated patch is attached.
As for platform compatibility, I'd certainly feel better if someone could test the Sun/AIX changes. Unfortunately, I'm unable to do so. It's interesting that OSX accepts "%". As per the spec, "%%" is a "%" literal, and the behavior of invalid tokens such as "%" is undefined. |
|
Date |
User |
Action |
Args |
2015-09-05 02:16:17 | JohnLeitch | set | recipients:
+ JohnLeitch, lemburg, paul.moore, belopolsky, vstinner, larry, tim.golden, BreamoreBoy, zach.ware, steve.dower, brycedarling |
2015-09-05 02:16:17 | JohnLeitch | set | messageid: <1441419377.32.0.145081568373.issue24917@psf.upfronthosting.co.za> |
2015-09-05 02:16:17 | JohnLeitch | link | issue24917 messages |
2015-09-05 02:16:16 | JohnLeitch | create | |
|