diff options
author | Georg Brandl <georg@python.org> | 2009-08-13 12:05:52 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-08-13 12:05:52 (GMT) |
commit | fb69631af70e6c6f3996c1ad365ac6038ba52d6d (patch) | |
tree | 4f4c219d6112ec55d64b40661f4cf041619739a3 /Doc/tutorial | |
parent | 04fd324fe3b99fd731ac46352056fa902ccc77f4 (diff) | |
download | cpython-fb69631af70e6c6f3996c1ad365ac6038ba52d6d.zip cpython-fb69631af70e6c6f3996c1ad365ac6038ba52d6d.tar.gz cpython-fb69631af70e6c6f3996c1ad365ac6038ba52d6d.tar.bz2 |
Use locale.format_string() for more than one specifier.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/stdlib2.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst index 6f0a6ed..0197a6f 100644 --- a/Doc/tutorial/stdlib2.rst +++ b/Doc/tutorial/stdlib2.rst @@ -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' |