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.67403e-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.
History
Date User Action Args
2011-10-18 09:44:45nailorsetrecipients: + nailor, lemburg, loewis, terry.reedy, vstinner, ezio.melotti, vincent.chute, skrah, python-dev
2011-10-18 09:44:45nailorsetmessageid: <1318931085.63.0.286627314543.issue3067@psf.upfronthosting.co.za>
2011-10-18 09:44:45nailorlinkissue3067 messages
2011-10-18 09:44:44nailorcreate