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

Bruce Frederiksen dangyogi at gmail.com
Fri Mar 13 00:41:59 CET 2009


Eric Smith wrote:
> >>> format_number(whole_part='123456787654321',
>               decimal_point=',',
>               thousands_sep='.',
>               grouping=[4, 3, 2])
> >>> '12.34.56.78.765.4321'
>
Maybe the 'thousands_sep' parameter should be called 'grouping_sep' 
(since it doesn't always group by thousands)?

-bruce frederiksen



More information about the Python-ideas mailing list