]> granicus.if.org Git - python/commitdiff
Issue 21533: Dicts take iterables, not iterators. Patch by Wolfgang Maier.
authorTerry Jan Reedy <tjreedy@udel.edu>
Tue, 3 Jun 2014 00:42:56 +0000 (20:42 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Tue, 3 Jun 2014 00:42:56 +0000 (20:42 -0400)
Doc/library/stdtypes.rst
Misc/ACKS

index bb421af062cf137522b6799e9bc4235ffc2b9bc4..e41fa6e70ed8167d8391167b02865fd3814d1312 100644 (file)
@@ -3031,8 +3031,8 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
    If no positional argument is given, an empty dictionary is created.
    If a positional argument is given and it is a mapping object, a dictionary
    is created with the same key-value pairs as the mapping object.  Otherwise,
-   the positional argument must be an :term:`iterator` object.  Each item in
-   the iterable must itself be an iterator with exactly two objects.  The
+   the positional argument must be an :term:`iterable` object.  Each item in
+   the iterable must itself be an iterable with exactly two objects.  The
    first object of each item becomes a key in the new dictionary, and the
    second object the corresponding value.  If a key occurs more than once, the
    last value for that key becomes the corresponding value in the new
index 97d00eabdf9e21a5a77797160c5737e623016bab..9cf457286cb7569bef038a174af7cef015030586 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -818,6 +818,7 @@ Tim MacKenzie
 Nick Maclaren
 Don MacMillen
 Tomasz Maćkowiak
+Wolfgang Maier
 Steve Majewski
 Marek Majkowski
 Grzegorz Makarewicz