Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/stdlib2.rst @ 55613:e05322efca85 legacy-trunk
Use locale.format_string() for more than one specifier.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Thu, 13 Aug 2009 12:05:52 +0000 |
| parents | 93883f3787b5 |
| children | 337ebb829b8c |
line wrap: on
line diff
--- a/Doc/tutorial/stdlib2.rst Thu Aug 13 07:48:05 2009 +0000 +++ b/Doc/tutorial/stdlib2.rst Thu Aug 13 12:05:52 2009 +0000 @@ -61,8 +61,8 @@ >>> 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'
