STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Ray Allen: Your patch doesn't touch the documentation. At least, you should 
mention (using .. versionchanged:: 3.3) that PyUnicode_FromFormat() does now 
support width and precision. It is important to specify the unit of the sizes: 
number of bytes or number of characters? Because many developer may refer to 
printf() which counts in bytes (especially for %s). PyUnicode_FromFormat() is 
more close to wprintf(), but I don't know if wprintf() uses bytes or characters 
for width and precision with the %s and %ls formats.

I plan to fix #10833 by replacing %.100s by %s is most (or all) error messages, 
and then commit your 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