locale module broken?

Martin v. Loewis martin at v.loewis.de
Sat Mar 16 01:09:58 CET 2002

Carsten Gaebler <clpy at snakefarm.org> writes:

> while playing around with Greg Lindstrom's "Pretty integers" (see his
> posting), my Python 2.2 got stuck here:
> >>> import locale
> >>> locale.setlocale(locale.LC_ALL, "fr_FR")
> 'fr_FR'
> >>> locale.format("%.1f", 12345.5, 1)
> It runs forever. This is on RedHat 6.2 and Debian Potato. Any hints?

I can't reproduce this, with Python 2.3a0 on a SuSE 7.2 system: it
prints '12345,5'. If you care somewhat about this problem, submit a
bug report to SF. If you care a lot, please investigate.


More information about the Python-list mailing list