On Aug 28, 10:03 am, [EMAIL PROTECTED] wrote:
> Is there an int/long related bug lurking in locale?
Looks like this has already been reported:
See http://bugs.python.org/issue1742669
Mark
--
http://mail.python.org/mailman/listinfo/python-list
On 2007-08-28, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
import locale
>
locale.setlocale(locale.LC_ALL, 'English_United States.1252')
> 'English_United States.1252'
>
locale.format('%d', float('2244012500.'), grouping = True)
>
> Traceback (most recent call last):
> File "",
To pretty up some numbers stored as strings, I used locale to format
them with commas. I then found the following error:
>>> import locale
>>>locale.setlocale(locale.LC_ALL, 'English_United States.1252')
'English_United States.1252'
>>> locale.format('%d', float('2244012500.'), grouping = Tr