STINNER Victor added the comment:

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.

----------
resolution:  -> fixed
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19969>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to