From: Ezio Melotti Date: Fri, 12 Oct 2012 10:23:32 +0000 (+0300) Subject: Merge functional howto improvements with 3.2. X-Git-Tag: v3.4.0a1~2273^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd67c1d91a737f930757520f1d795367f9715592;p=thirdparty%2FPython%2Fcpython.git Merge functional howto improvements with 3.2. --- dd67c1d91a737f930757520f1d795367f9715592 diff --cc Doc/howto/functional.rst index f1ed07b44cea,8eadb01c68fc..f298d897f1c3 --- a/Doc/howto/functional.rst +++ b/Doc/howto/functional.rst @@@ -296,7 -296,7 +296,8 @@@ ordering of the objects in the dictiona 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. -:meth:`~dict.values` or :meth:`~dict.items` methods to get an appropriate iterator. ++:meth:`~dict.values` or :meth:`~dict.items` methods to get an appropriate ++iterator. The :func:`dict` constructor can accept an iterator that returns a finite stream of ``(key, value)`` tuples: