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 vstinner
Recipients amaury.forgeotdarc, brian.curtin, janglin, loewis, pitrou, schmir, vstinner
Date 2011-01-04.22:02:46
SpamBayes Score 4.3182313e-06
Marked as misclassified No
Message-id <1294178571.15.0.908274924182.issue9566@psf.upfronthosting.co.za>
In-reply-to
Content
amaury> r87733 in pyexpat.c modified a call to PyErr_Format with a %zi
amaury> format code. This format does not seem to be supported. %zd
amaury> should be used instead.

Oh, that's surprising. Why %zd is supported but not %zi?

PyUnicode_FromFormatV() supports %d, %ld, %lld, %zd, %i, but not %li, %lli or %zi. Before fixing PyUnicode_FromFormatV(), I fixed pyexpat.c: r87747.

MvL> If you are absolutely certain that a cast cannot possibly truncate, 
MvL> add a comment explaining why that is.

Ah yes, sorry, I forgot to add a comment: done in r87746.
History
Date User Action Args
2011-01-04 22:02:51vstinnersetrecipients: + vstinner, loewis, amaury.forgeotdarc, pitrou, schmir, brian.curtin, janglin
2011-01-04 22:02:51vstinnersetmessageid: <1294178571.15.0.908274924182.issue9566@psf.upfronthosting.co.za>
2011-01-04 22:02:46vstinnerlinkissue9566 messages
2011-01-04 22:02:46vstinnercreate