[Python-Dev] locale and LC_NUMERIC (original) (raw)

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


Georg Brandl wrote:

import locale origlocale = locale.setlocale(locale.LCNUMERIC, '') locale.setlocale(locale.LCNUMERIC, 'frFR')

and later finally: locale.setlocale(locale.LCNUMERIC, origlocale)

Shouldn't the first setlocale have no second argument?

Oops, right - it certainly should.

Martin



More information about the Python-Dev mailing list