update the tutorial to use str.format

This commit is contained in:
Benjamin Peterson 2008-05-26 00:54:22 +00:00
parent c15205e939
commit f9ef9881d7
7 changed files with 81 additions and 32 deletions

View file

@ -372,9 +372,13 @@ The built-in function :func:`len` returns the length of a string::
Both strings and Unicode strings support a large number of methods for
basic transformations and searching.
:ref:`new-string-formatting`
Information about string formatting with :meth:`str.format` is described
here.
:ref:`string-formatting`
The formatting operations invoked when strings and Unicode strings are the
left operand of the ``%`` operator are described in more detail here.
The old formatting operations invoked when strings and Unicode strings are
the left operand of the ``%`` operator are described in more detail here.
.. _tut-unicodestrings: