Message145789
| Author |
nailor |
| Recipients |
ezio.melotti, lemburg, loewis, nailor, python-dev, skrah, terry.reedy, vincent.chute, vstinner |
| Date |
2011年10月18日.09:44:44 |
| SpamBayes Score |
9.674029e-05 |
| Marked as misclassified |
No |
| Message-id |
<1318931085.63.0.286627314543.issue3067@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Added a patch that implements two things:
setlocale now raises locale.Error('Locale must be None, a string, or an iterable of two strings -- language code, encoding.'). I decided to remove the proposed .format(locale), as it wasa a bit confusing when passing a tuple containing invalid items.
I also added two tests, one for bytes and another for a tuple of two bytes. |
|