diff options
author | Georg Brandl <georg@python.org> | 2009-08-13 12:06:43 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-08-13 12:06:43 (GMT) |
commit | 4a52a4c3bbd41aa58b45a2a8da0eaf99fd041a38 (patch) | |
tree | 175c2077cf5c7c5b0bdb04a31a85914df2de058d /Doc/tutorial | |
parent | 3517e378d8b8846b31f79dd5f04c4106eafae38f (diff) | |
download | cpython-4a52a4c3bbd41aa58b45a2a8da0eaf99fd041a38.zip cpython-4a52a4c3bbd41aa58b45a2a8da0eaf99fd041a38.tar.gz cpython-4a52a4c3bbd41aa58b45a2a8da0eaf99fd041a38.tar.bz2 |
Merged revisions 74404 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74404 | georg.brandl | 2009-08-13 14:05:52 +0200 (Do, 13 Aug 2009) | 1 line
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 4d7f1c5..2d52591 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' |