diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-05-26 12:29:46 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-05-26 12:29:46 (GMT) |
commit | c3cb683d638e9d660c18a05293a576f98965166e (patch) | |
tree | 1480b82a135e883fd80c1f445bfa82b2e00bfe00 /Doc | |
parent | 3497f9447633b0a60a0b42ba06f2246805b20bb9 (diff) | |
download | cpython-c3cb683d638e9d660c18a05293a576f98965166e.zip cpython-c3cb683d638e9d660c18a05293a576f98965166e.tar.gz cpython-c3cb683d638e9d660c18a05293a576f98965166e.tar.bz2 |
some updates to string formatting section in whatsnew
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/2.6.rst | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index a81243a..d00d15c 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -526,9 +526,9 @@ environment variable. PEP 3101: Advanced String Formatting ===================================================== -In Python 3.0, the `%` operator is supplemented by a more powerful -string formatting method, :meth:`format`. Support for the -:meth:`format` method has been backported to Python 2.6. +In Python 3.0, the `%` operator is supplemented by a more powerful string +formatting method, :meth:`format`. Support for the :meth:`str.format` method +has been backported to Python 2.6. In 2.6, both 8-bit and Unicode strings have a `.format()` method that treats the string as a template and takes the arguments to be formatted. @@ -649,8 +649,11 @@ the type's :meth:`__format__` method with the provided specifier:: .. seealso:: + :ref:`formatstrings` + The reference format fields. + :pep:`3101` - Advanced String Formatting - PEP written by Talin. + PEP written by Talin. Implemented by Eric Smith. .. ====================================================================== |