[Python-ideas] Rough draft: Proposed format specifier for a thousands separator (discussion moved from python-dev)

Nick Coghlan ncoghlan at gmail.com
Wed Mar 18 13:09:13 CET 2009


Steven D'Aprano wrote:
> What I've generally seen on cheques is $****1,000.00

Interestingly, str.format will actually be able to produce directly in 3.1:

  "${:*>,.2f}".format(value)

...although that makes seq[::-1] look positively coherent :)

Wondering-who-will-ask-for-a-{!verbose}-string-formatting-flag'ly,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------



More information about the Python-ideas mailing list