STINNER Victor added the comment:

Updated patch: precision for "%s" and "%V" (if the first PyObject* argument is 
NULL) formats is now a number of bytes, rather than a number of characters. 
width is still always a number of character.

The reason is that "%.100s" can be used for avoid a crash if the argument is 
not terminated by a null character (see issue #10833).

----------
Added file: 
http://bugs.python.org/file27479/unicode_fromformat_precision-2.patch

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

Reply via email to