Message97349
| Author |
ezio.melotti |
| Recipients |
doerwalter, eric.smith, ezio.melotti, vstinner |
| Date |
2010年01月07日.11:49:15 |
| SpamBayes Score |
0.00037143816 |
| Marked as misclassified |
No |
| Message-id |
<1262864957.57.0.964886577876.issue7649@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If we allow it to work on 2.7 the code will break:
1) when ported to Py3, where mixing bytes strings and unicode is not allowed;
2) when used on Py<2.7, where the behavior is broken;
3) when converted to str.format, where only ints are accepted.
If we raise an error, the user will have to either use unicode strings or ints and he will avoid further problems. Moreover, the fact that no one noticed this problems means that is not a common operation, so no one probably expects it to work anyway and raising an error could even help to find the problem if someone used %c in older versions. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年01月07日 11:49:17 | ezio.melotti | set | recipients:
+ ezio.melotti, doerwalter, vstinner, eric.smith |
| 2010年01月07日 11:49:17 | ezio.melotti | set | messageid: <1262864957.57.0.964886577876.issue7649@psf.upfronthosting.co.za> |
| 2010年01月07日 11:49:16 | ezio.melotti | link | issue7649 messages |
| 2010年01月07日 11:49:15 | ezio.melotti | create |
|