Message126302
| Author |
vstinner |
| Recipients |
amaury.forgeotdarc, belopolsky, eric.smith, vstinner |
| Date |
2011年01月14日.22:05:02 |
| SpamBayes Score |
3.3559354e-07 |
| Marked as misclassified |
No |
| Message-id |
<1295042708.41.0.786360452265.issue10833@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
belopolsky> Limiting field width when formatting error messages is
belopolsky> a good safety measure.
The problem is that PyUnicode_FromFormatV() doesn't support %.100s format (it ignores .100). If we truncate at 100 bytes, it may truncate an UTF-8 string in the middle of a character :-/ And I don't want to implement it because I don't like arbitrary limitations in Python. |
|