howto format currency string?

Alex Martelli aleax at
Fri Aug 29 16:14:50 CEST 2003

Peter Otten wrote:
>>>> locale.setlocale(locale.LC_ALL, 'de')
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "", line 381, in setlocale
>     return _setlocale(category, locale)
> locale.Error: locale setting not supported
> The second (not working) variant is taken directly from the documentation.
> The error message led me to assume that my version of Python didn't
> support locale setting at all.
> Maybe I should file a bug report?

Yes, I believe that the error message is potentially misleading, and
filing a bug report is a good way to have it fixed ASAP, thanks.


More information about the Python-list mailing list