diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2010-01-12 18:38:14 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2010-01-12 18:38:14 (GMT) |
commit | a515bab035ef19e923e781171115c4a3a7f4e8fe (patch) | |
tree | f0750bc2db6c57eaacdd5928f2fcf2f81e4a31d6 /Doc/library/2to3.rst | |
parent | 08a829a9f4c80fd758977cc8e4e7d08c8d202c56 (diff) | |
download | cpython-a515bab035ef19e923e781171115c4a3a7f4e8fe.zip cpython-a515bab035ef19e923e781171115c4a3a7f4e8fe.tar.gz cpython-a515bab035ef19e923e781171115c4a3a7f4e8fe.tar.bz2 |
Merged revisions 77445 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77445 | alexandre.vassalotti | 2010-01-12 13:25:33 -0500 (Tue, 12 Jan 2010) | 2 lines
Added documentation for dictionary views fixer.
........
Diffstat (limited to 'Doc/library/2to3.rst')
-rw-r--r-- | Doc/library/2to3.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/2to3.rst b/Doc/library/2to3.rst index 20a6245..6f675b0 100644 --- a/Doc/library/2to3.rst +++ b/Doc/library/2to3.rst @@ -129,9 +129,11 @@ and off individually. They are described here in more detail. Fixes dictionary iteration methods. :meth:`dict.iteritems` is converted to :meth:`dict.items`, :meth:`dict.iterkeys` to :meth:`dict.keys`, and - :meth:`dict.itervalues` to :meth:`dict.values`. It also wraps existing - usages of :meth:`dict.items`, :meth:`dict.keys`, and :meth:`dict.values` in a - call to :class:`list`. + :meth:`dict.itervalues` to :meth:`dict.values`. Similarly, + :meth:`dict.viewitems`, :meth:`dict.viewkeys` and :meth:`dict.viewvalues` + are converted respectively to :meth:`dict.items`, :meth:`dict.keys` and + :meth:`dict.values`. It also wraps existing usages of :meth:`dict.items`, + :meth:`dict.keys`, and :meth:`dict.values` in a call to :class:`list`. .. 2to3fixer:: except |