mirror of
https://github.com/python/cpython.git
synced 2025-11-10 14:31:24 +00:00
Added documentation for dictionary views fixer.
This commit is contained in:
parent
b5689de044
commit
b227f47b2b
1 changed files with 5 additions and 3 deletions
|
|
@ -129,9 +129,11 @@ and off individually. They are described here in more detail.
|
||||||
|
|
||||||
Fixes dictionary iteration methods. :meth:`dict.iteritems` is converted to
|
Fixes dictionary iteration methods. :meth:`dict.iteritems` is converted to
|
||||||
:meth:`dict.items`, :meth:`dict.iterkeys` to :meth:`dict.keys`, and
|
:meth:`dict.items`, :meth:`dict.iterkeys` to :meth:`dict.keys`, and
|
||||||
:meth:`dict.itervalues` to :meth:`dict.values`. It also wraps existing
|
:meth:`dict.itervalues` to :meth:`dict.values`. Similarly,
|
||||||
usages of :meth:`dict.items`, :meth:`dict.keys`, and :meth:`dict.values` in a
|
:meth:`dict.viewitems`, :meth:`dict.viewkeys` and :meth:`dict.viewvalues`
|
||||||
call to :class:`list`.
|
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
|
.. 2to3fixer:: except
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue