Message122507
| Author |
ezio.melotti |
| Recipients |
amaury.forgeotdarc, belopolsky, eric.smith, ezio.melotti, lemburg, pitrou, terry.reedy |
| Date |
2010年11月27日.08:16:12 |
| SpamBayes Score |
9.39942e-06 |
| Marked as misclassified |
No |
| Message-id |
<1290845774.23.0.450802749835.issue10521@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I agree that s.center(char, n).encode('utf-8') should be the same on both the builds -- even if their len() will be different -- for the following reasons:
1) the string will eventually be encoded, and if they the result is the same on both builds, it will look the same too;
2) trying to keep the same len() will generate different results and it won't work in case of odd width like 'foo'.center(surrogate_pair, 5) because you can't put half surrogate. |
|