locale support and 4.10
Timothy Smith
timothy at open-networks.net
Sat Mar 5 00:42:23 EST 2005
i'm trying to setlocale() on 4.10, and it appears the python package
doesn't support this under 4.10.
Python 2.3.3 (#2, Apr 28 2004, 22:48:37)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.setlocale(locale.LC_NUMERIC, 'us')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.3/locale.py", line 381, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
>>>
the exact same thing works under windows xp.
do i have to compile it with locale support?
also my second question. once i have this working how do i set the
thousands_sep character to be a "," ?
More information about the Python-list
mailing list