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 eric.smith, ezio.melotti, lemburg, mark.dickinson, ron_adam, vstinner, ysj.ray
Date 2011-03-21.13:37:12
SpamBayes Score 3.8460774e-05
Marked as misclassified No
Message-id <1300714633.47.0.919583589784.issue7330@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-03-21 13:37:13vstinnersetrecipients: + vstinner, lemburg, mark.dickinson, eric.smith, ron_adam, ezio.melotti, ysj.ray
2011-03-21 13:37:13vstinnersetmessageid: <1300714633.47.0.919583589784.issue7330@psf.upfronthosting.co.za>
2011-03-21 13:37:12vstinnerlinkissue7330 messages
2011-03-21 13:37:12vstinnercreate