]> granicus.if.org Git - python/commitdiff
rename the section about new formatting 'new-string-formatting'
authorBenjamin Peterson <benjamin@python.org>
Sun, 25 May 2008 20:05:52 +0000 (20:05 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 25 May 2008 20:05:52 +0000 (20:05 +0000)
Doc/library/string.rst

index 09f918298062472e8726776943bc02b648290051..fa953f2b8afc66b397cbb13c6329180a29f5c808 100644 (file)
@@ -103,16 +103,16 @@ The constants defined in this module are:
    :func:`strip` and :func:`split` is undefined.
 
 
-.. _string-formatting:
+.. _new-string-formatting:
 
 String Formatting
 -----------------
 
 Starting in Python 2.6, the built-in str and unicode classes provide the ability
-to do complex variable substitutions and value formatting via the :func:`format`
-method described in :pep:`3101`.  The :class:`Formatter` class in the
-:mod:`string` module allows you to create and customize your own string
-formatting behaviors using the same implementation as the built-in
+to do complex variable substitutions and value formatting via the
+:meth:`str.format` method described in :pep:`3101`.  The :class:`Formatter`
+class in the :mod:`string` module allows you to create and customize your own
+string formatting behaviors using the same implementation as the built-in
 :meth:`format` method.
 
 .. class:: Formatter