Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a4b538df
Commit
a4b538df
authored
Jun 02, 2014
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 21533: Dicts take iterables, not iterators. Patch by Wolfgang Maier.
parent
9ce635f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Doc/library/stdtypes.rst
Doc/library/stdtypes.rst
+2
-2
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Doc/library/stdtypes.rst
View file @
a4b538df
...
...
@@ -1989,8 +1989,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:`itera
tor
` object. Each item in
the iterable must itself be an itera
tor
with exactly two objects. The
the positional argument must be an :term:`itera
ble
` object. Each item in
the iterable must itself be an itera
ble
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
...
...
Misc/ACKS
View file @
a4b538df
...
...
@@ -819,6 +819,7 @@ Tim MacKenzie
Nick Maclaren
Don MacMillen
Tomasz Maćkowiak
Wolfgang Maier
Steve Majewski
Marek Majkowski
Grzegorz Makarewicz
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment