Kaydet (Commit) fb69631a authored tarafından Georg Brandl's avatar Georg Brandl

Use locale.format_string() for more than one specifier.

üst 04fd324f
......@@ -61,8 +61,8 @@ formatting numbers with group separators::
>>> x = 1234567.8
>>> locale.format("%d", x, grouping=True)
'1,234,567'
>>> locale.format("%s%.*f", (conv['currency_symbol'],
... conv['frac_digits'], x), grouping=True)
>>> locale.format_string("%s%.*f", (conv['currency_symbol'],
... conv['frac_digits'], x), grouping=True)
'$1,234,567.80'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment