]> granicus.if.org Git - python/commitdiff
Merged revisions 79826 via svnmerge from
authorEric Smith <eric@trueblade.com>
Tue, 6 Apr 2010 14:57:57 +0000 (14:57 +0000)
committerEric Smith <eric@trueblade.com>
Tue, 6 Apr 2010 14:57:57 +0000 (14:57 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79826 | eric.smith | 2010-04-06 10:30:15 -0400 (Tue, 06 Apr 2010) | 1 line

  Fixed PEP 378 example.
........

Doc/whatsnew/2.7.rst

index 205d232b45c8fa453dc1ce950e8666284637dad9..fa041907f4b01f27ff3b89bf61a9755f8f64cf8b 100644 (file)
@@ -207,7 +207,7 @@ mini-language used by the string :meth:`format` method.  When
 formatting a floating-point number, simply include a comma between the
 width and the precision::
 
-   >>> '{:20,.2}'.format(f)
+   >>> '{:20,.2f}'.format(18446744073709551616.0)
    '18,446,744,073,709,551,616.00'
 
 This mechanism is not adaptable at all; commas are always used as the