Commit c15205e9 authored by Benjamin Peterson's avatar Benjamin Peterson

rename the section about new formatting 'new-string-formatting'

parent bbaa2ebd
...@@ -103,16 +103,16 @@ The constants defined in this module are: ...@@ -103,16 +103,16 @@ The constants defined in this module are:
:func:`strip` and :func:`split` is undefined. :func:`strip` and :func:`split` is undefined.
.. _string-formatting: .. _new-string-formatting:
String Formatting String Formatting
----------------- -----------------
Starting in Python 2.6, the built-in str and unicode classes provide the ability 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` to do complex variable substitutions and value formatting via the
method described in :pep:`3101`. The :class:`Formatter` class in the :meth:`str.format` method described in :pep:`3101`. The :class:`Formatter`
:mod:`string` module allows you to create and customize your own string class in the :mod:`string` module allows you to create and customize your own
formatting behaviors using the same implementation as the built-in string formatting behaviors using the same implementation as the built-in
:meth:`format` method. :meth:`format` method.
.. class:: Formatter .. class:: Formatter
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment