From: Georg Brandl Date: Thu, 13 Aug 2009 12:05:52 +0000 (+0000) Subject: Use locale.format_string() for more than one specifier. X-Git-Tag: v2.7a1~670 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb69631af70e6c6f3996c1ad365ac6038ba52d6d;p=thirdparty%2FPython%2Fcpython.git Use locale.format_string() for more than one specifier. --- diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst index 6f0a6ed22b39..0197a6fb3289 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'