This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 nailor
收信人 ezio.melotti, lemburg, loewis, nailor, python-dev, skrah, terry.reedy, vincent.chute, vstinner
日期 2011-10-18.09:44:44
SpamBayes Score 9.674029e-05
Marked as misclassified
Message-id <1318931085.63.0.286627314543.issue3067@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2011-10-18 09:44:45nailor修改recipients: + nailor, lemburg, loewis, terry.reedy, vstinner, ezio.melotti, vincent.chute, skrah, python-dev
2011-10-18 09:44:45nailor修改messageid: <1318931085.63.0.286627314543.issue3067@psf.upfronthosting.co.za>
2011-10-18 09:44:45nailor链接issue3067 messages
2011-10-18 09:44:44nailor创建