Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c3cb683d
Commit
c3cb683d
authored
May 26, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some updates to string formatting section in whatsnew
parent
3497f944
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Doc/whatsnew/2.6.rst
Doc/whatsnew/2.6.rst
+7
-4
No files found.
Doc/whatsnew/2.6.rst
View file @
c3cb683d
...
...
@@ -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.
.. ======================================================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment