[Python-checkins] r77447 - in python/branches/py3k: Doc/library/2to3.rst
alexandre.vassalotti
python-checkins at python.org
Tue Jan 12 19:38:14 CET 2010
Author: alexandre.vassalotti
Date: Tue Jan 12 19:38:14 2010
New Revision: 77447
Log:
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.
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Doc/library/2to3.rst
Modified: python/branches/py3k/Doc/library/2to3.rst
==============================================================================
--- python/branches/py3k/Doc/library/2to3.rst (original)
+++ python/branches/py3k/Doc/library/2to3.rst Tue Jan 12 19:38:14 2010
@@ -129,9 +129,11 @@
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
More information about the Python-checkins
mailing list