parent
cccaba9b8e
commit
23e70830db
|
@ -126,7 +126,7 @@ in order to iterate again.
|
||||||
In Python 3, direct iteration over mappings works the same way as it does
|
In Python 3, direct iteration over mappings works the same way as it does
|
||||||
in Python 2. There are no method based equivalents - the semantic equivalents
|
in Python 2. There are no method based equivalents - the semantic equivalents
|
||||||
of ``d.itervalues()`` and ``d.iteritems()`` in Python 3 are
|
of ``d.itervalues()`` and ``d.iteritems()`` in Python 3 are
|
||||||
``iter(d.values())`` and ``iter(d.iteritems())``.
|
``iter(d.values())`` and ``iter(d.items())``.
|
||||||
|
|
||||||
The ``six`` and ``future.utils`` compatibility modules also both provide
|
The ``six`` and ``future.utils`` compatibility modules also both provide
|
||||||
``iterkeys()``, ``itervalues()`` and ``iteritems()`` helper functions that
|
``iterkeys()``, ``itervalues()`` and ``iteritems()`` helper functions that
|
||||||
|
|
Loading…
Reference in New Issue