[Python-Dev] locale and LC_NUMERIC

"Martin v. Löwis" martin at v.loewis.de
Mon Jan 9 23:19:39 CET 2006


Georg Brandl wrote:
>              import locale
>              orig_locale = locale.setlocale(locale.LC_NUMERIC, '')
>              locale.setlocale(locale.LC_NUMERIC, 'fr_FR')
> 
> and later
> 
>          finally:
>              locale.setlocale(locale.LC_NUMERIC, orig_locale)
> 
> 
> Shouldn't the first setlocale have no second argument?

Oops, right - it certainly should.

Martin


More information about the Python-Dev mailing list