Author vstinner
Recipients amaury.forgeotdarc, vstinner
Date 2011-01-05.03:02:30
SpamBayes Score 9.24203e-08
Marked as misclassified No
Message-id <>
Guido created the "convenience function" PyErr_Format() 13 years ago (r7580) with a naive implementation using char buffer[500] and vsprintf(). He added a comment:

/* Caller is responsible for limiting the format */

Ok, that was true 13 years ago. But today Python uses dynamically allocated buffers, and so we can simply replace %.100s ("%\.[0-9]+s" regex) by %s.

Anyway, PyUnicode_FromFormatV() doesn't support precision for %s and %U formats :-)
Date User Action Args
2011-01-05 03:02:35vstinnersetrecipients: + vstinner, amaury.forgeotdarc
2011-01-05 03:02:34vstinnersetmessageid: <>
2011-01-05 03:02:30vstinnerlinkissue10833 messages
2011-01-05 03:02:30vstinnercreate