Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a52a4c

Browse files
committed
Merged revisions 74404 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent 3517e37 commit 4a52a4c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/tutorial/stdlib2.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ formatting numbers with group separators::
6161
>>> x = 1234567.8
6262
>>> locale.format("%d", x, grouping=True)
6363
'1,234,567'
64-
>>> locale.format("%s%.*f", (conv['currency_symbol'],
65-
... conv['frac_digits'], x), grouping=True)
64+
>>> locale.format_string("%s%.*f", (conv['currency_symbol'],
65+
... conv['frac_digits'], x), grouping=True)
6666
'$1,234,567.80'
6767

6868

0 commit comments

Comments
 (0)