summaryrefslogtreecommitdiffstats
path: root/Doc/howto/functional.rst
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2007-09-04 17:33:11 (GMT)
committerFred Drake <fdrake@acm.org>2007-09-04 17:33:11 (GMT)
commit2e74878ef261489d8fd852fff0be4f0ecaf7e2f0 (patch)
treef9a40ab9eb8401f315852e9674926b92cd1abb5a /Doc/howto/functional.rst
parentafe0cd194f866f78914096bc34e9285af7032b1f (diff)
downloadcpython-2e74878ef261489d8fd852fff0be4f0ecaf7e2f0.zip
cpython-2e74878ef261489d8fd852fff0be4f0ecaf7e2f0.tar.gz
cpython-2e74878ef261489d8fd852fff0be4f0ecaf7e2f0.tar.bz2
remove/update many of the references to dict.iter*()
Diffstat (limited to 'Doc/howto/functional.rst')
-rw-r--r--Doc/howto/functional.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst
index 280749c..9c1003d 100644
--- a/Doc/howto/functional.rst
+++ b/Doc/howto/functional.rst
@@ -291,10 +291,10 @@ dictionary's keys::
Note that the order is essentially random, because it's based on the hash
ordering of the objects in the dictionary.
-Applying ``iter()`` to a dictionary always loops over the keys, but dictionaries
-have methods that return other iterators. If you want to iterate over keys,
-values, or key/value pairs, you can explicitly call the ``iterkeys()``,
-``itervalues()``, or ``iteritems()`` methods to get an appropriate iterator.
+Applying :func:`iter` to a dictionary always loops over the keys, but
+dictionaries have methods that return other iterators. If you want to iterate
+over values or key/value pairs, you can explicitly call the
+:meth:`values` or :meth:`items` methods to get an appropriate iterator.
The :func:`dict` constructor can accept an iterator that returns a finite stream
of ``(key, value)`` tuples::