From: Alexandre Vassalotti Date: Tue, 12 Jan 2010 18:25:33 +0000 (+0000) Subject: Added documentation for dictionary views fixer. X-Git-Tag: v2.7a3~179 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b227f47b2b66b971dff1706b8b82b8cbc5620089;p=thirdparty%2FPython%2Fcpython.git Added documentation for dictionary views fixer. --- diff --git a/Doc/library/2to3.rst b/Doc/library/2to3.rst index 20a6245dc656..6f675b057654 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