[issue2526] str.format() :n format does not appear to work for int and float

2008-04-29 Thread Eric Smith
Eric Smith [EMAIL PROTECTED] added the comment: Committed fix in r62586. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2526 __

[issue2526] str.format() :n format does not appear to work

2008-04-05 Thread Eric Smith
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:

[issue2526] str.format() :n format does not appear to work for int and float

2008-04-05 Thread Eric Smith
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

[issue2526] str.format() :n format does not appear to work

2008-04-04 Thread Neal Norwitz
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 __

[issue2526] str.format() :n format does not appear to work

2008-04-01 Thread Mark Summerfield
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