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 JohnLeitch
Recipients BreamoreBoy, JohnLeitch, belopolsky, brycedarling, larry, lemburg, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2015-09-05.02:16:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441419377.32.0.145081568373.issue24917@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-09-05 02:16:17JohnLeitchsetrecipients: + JohnLeitch, lemburg, paul.moore, belopolsky, vstinner, larry, tim.golden, BreamoreBoy, zach.ware, steve.dower, brycedarling
2015-09-05 02:16:17JohnLeitchsetmessageid: <1441419377.32.0.145081568373.issue24917@psf.upfronthosting.co.za>
2015-09-05 02:16:17JohnLeitchlinkissue24917 messages
2015-09-05 02:16:16JohnLeitchcreate