Jyrki Pulliainen <jy...@dywypi.org> added the comment: 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. ---------- keywords: +patch nosy: +nailor Added file: http://bugs.python.org/file23439/issue3067.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue3067> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com