[Python-checkins] r71498 - python/trunk/Doc/whatsnew/2.7.rst

benjamin.peterson python-checkins at python.org
Sat Apr 11 22:27:16 CEST 2009


Author: benjamin.peterson
Date: Sat Apr 11 22:27:15 2009
New Revision: 71498

Log:
fix markup

Modified:
   python/trunk/Doc/whatsnew/2.7.rst

Modified: python/trunk/Doc/whatsnew/2.7.rst
==============================================================================
--- python/trunk/Doc/whatsnew/2.7.rst	(original)
+++ python/trunk/Doc/whatsnew/2.7.rst	Sat Apr 11 22:27:15 2009
@@ -88,22 +88,21 @@
 
 Some smaller changes made to the core Python language are:
 
-* The string :method:`format` method now supports automatic numbering
-  of the replacement fields.  This makes using :meth:`format`
-  more closely resemble using ``%s`` formatting::
+* :meth:`str.format` method now supports automatic numbering of the replacement
+  fields.  This makes using :meth:`str.format` more closely resemble using
+  ``%s`` formatting::
 
     >>> '{}:{}:{}'.format(2009, 04, 'Sunday')
     '2009:4:Sunday'
     >>> '{}:{}:{day}'.format(2009, 4, day='Sunday')
     '2009:4:Sunday'
 
-  The auto-numbering takes the fields from left to right, so the first
-  ``{...}`` specifier will use the first argument to :meth:`format`,
-  the next specifier will use the next argument, and so on.  You can't
-  mix auto-numbering and explicit numbering -- either number all of
-  your specifier fields or none of them -- but you can mix
-  auto-numbering and named fields, as in the second example above.
-  (Contributed by XXX; :issue`5237`.)
+  The auto-numbering takes the fields from left to right, so the first ``{...}``
+  specifier will use the first argument to :meth:`str.format`, the next
+  specifier will use the next argument, and so on.  You can't mix auto-numbering
+  and explicit numbering -- either number all of your specifier fields or none
+  of them -- but you can mix auto-numbering and named fields, as in the second
+  example above.  (Contributed by XXX; :issue`5237`.)
 
 * The :func:`int` and :func:`long` types gained a ``bit_length``
   method that returns the number of bits necessary to represent


More information about the Python-checkins mailing list