Eric Smith [EMAIL PROTECTED] added the comment:
Committed fix in r62586.
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2526
__
Eric Smith [EMAIL PROTECTED] added the comment:
I'm looking into it.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2526
__
___
Python-bugs-list mailing list
Unsubscribe:
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
Neal Norwitz [EMAIL PROTECTED] added the comment:
Eric, could you take a look?
--
assignee: - eric.smith
nosy: +eric.smith, nnorwitz
priority: - high
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2526
__
New submission from Mark Summerfield [EMAIL PROTECTED]:
# Py30a3
import locale
locale.setlocale(locale.LC_ALL, en_US.UTF8)
'en_US.UTF8'
locale.format(%d, 12345, True)
'12,345'
{0:n}.format(12345)
'12345'
According to the docs the 'n' format should use the locale-dependent
separator, so I