This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark
Recipients mark
Date 2008-04-01.11:35:23
SpamBayes Score 0.31220832
Marked as misclassified No
Message-id <1207049726.03.0.00767179543802.issue2526@psf.upfronthosting.co.za>
In-reply-to
Content
>>> # 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 expected both strings to be '12,345'.

Also, it is a pity that locale.format() uses the old deprecated % syntax
rather than the much nicer and better str.format() syntax.
History
Date User Action Args
2008-04-01 11:35:26marksetspambayes_score: 0.312208 -> 0.31220832
recipients: + mark
2008-04-01 11:35:26marksetspambayes_score: 0.312208 -> 0.312208
messageid: <1207049726.03.0.00767179543802.issue2526@psf.upfronthosting.co.za>
2008-04-01 11:35:24marklinkissue2526 messages
2008-04-01 11:35:23markcreate