[issue7330] PyUnicode_FromFormat: implement width and precision for %s, %S, %R, %V, %U, %A
STINNER Victor
report at bugs.python.org
Sun Oct 7 22:35:40 CEST 2012
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 <report at bugs.python.org>
<http://bugs.python.org/issue7330>
_______________________________________
More information about the Python-bugs-list
mailing list