summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-08-13 12:05:52 (GMT)
committerGeorg Brandl <georg@python.org>2009-08-13 12:05:52 (GMT)
commitfb69631af70e6c6f3996c1ad365ac6038ba52d6d (patch)
tree4f4c219d6112ec55d64b40661f4cf041619739a3 /Doc/tutorial
parent04fd324fe3b99fd731ac46352056fa902ccc77f4 (diff)
downloadcpython-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.rst4
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'