Message125399
| Author | vstinner |
|---|---|
| Recipients | amaury.forgeotdarc, vstinner |
| Date | 2011-01-05.03:02:30 |
| SpamBayes Score | 9.242026e-08 |
| Marked as misclassified | No |
| Message-id | <1294196554.94.0.785505480291.issue10833@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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 :-) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2011-01-05 03:02:35 | vstinner | set | recipients: + vstinner, amaury.forgeotdarc |
| 2011-01-05 03:02:34 | vstinner | set | messageid: <1294196554.94.0.785505480291.issue10833@psf.upfronthosting.co.za> |
| 2011-01-05 03:02:30 | vstinner | link | issue10833 messages |
| 2011-01-05 03:02:30 | vstinner | create | |