[issue3067] setlocale error message is confusing

Jyrki Pulliainen report at bugs.python.org
Tue Oct 18 21:08:11 CEST 2011


Jyrki Pulliainen <jyrki at dywypi.org> added the comment:

Maybe we should return TypeError with the same message then? That would require some modification of documentation though, as it states: "If the modification of the locale fails, the exception Error is raised.".

I don't really understand the "locale unpacking may actually succeed". Isn't that what supposed to happen, to my knowledge "en" is not a valid locale and that's a totally different issue? If I'm wrong, please correct, I've just started wandering in to Python Core development :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3067>
_______________________________________


More information about the Python-bugs-list mailing list