problem with locale
marcin andrzejewski
m.andrzejewski at dmz.com.pl
Mon Mar 4 06:28:17 EST 2002
everything works fine in IDLE, but when running as script, i 've got
following error:
import locale
locale.setlocale(locale.LC_ALL, '')
a= locale.format ('%.2f',-100000.236,1)
Traceback (most recent call last):
File "locale.py", line 1, in ?
import locale
File "locale.py", line 2, in ?
locale.setlocale(locale.LC_ALL, '')
AttributeError: 'module' object has no attribute 'setlocale'
>Exit code: 1
what's wrong ?
--
marcin andrzejewski
m.andrzejewski at dmz.com.pl
keson at post.pl
More information about the Python-list
mailing list