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 python-dev, serhiy.storchaka, vstinner
Date 2013-12-13.14:01:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386943306.32.0.00296981541793.issue19969@psf.upfronthosting.co.za>
In-reply-to
Content
It was easy to fix the issue on Python 3.3 (there are already unit tests on PyBytes_FromFormatV).

I prefer to leave Python 2.7 with it's current behaviour because applications running on Python 2.7 may be old and might be rely on the integer overflow. PyString is the native "string" type, so it is usually used. Whereas in Python 3, bytes is not the native type. I chose to fix Python 3.3 because it's a recent release and I believe that applications are more recent and if they rely on the bug, they can more easily fixed.

(Ok, I bet that in practice, nobody cares of non-ASCII characters in PyBytes_FromFormatV() because PyBytes_FromFormatV() is probably not used in the wild.)

So let close this minor issue.
History
Date User Action Args
2013-12-13 14:01:46vstinnersetrecipients: + vstinner, python-dev, serhiy.storchaka
2013-12-13 14:01:46vstinnersetmessageid: <1386943306.32.0.00296981541793.issue19969@psf.upfronthosting.co.za>
2013-12-13 14:01:46vstinnerlinkissue19969 messages
2013-12-13 14:01:45vstinnercreate