Eric Smith <[EMAIL PROTECTED]> added the comment:
The same issue exists with floats:
# continuing the example
>>> locale.format("%g", 12345, True)
'12,345'
>>> "{0:n}".format(12345.0)
'12345'
The same issue exists in 2.6.
----------
title: str.format() :n format does not appear to work -> str.format() :n format
does not appear to work for int and float
versions: +Python 2.6
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2526>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com