Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4177538 commit 51acc8dCopy full SHA for 51acc8d
1 file changed
Misc/NEWS
@@ -90,6 +90,11 @@ Core
90
- Dictionary objects now support the "in" operator: "x in dict" means
91
the same as dict.has_key(x).
92
93
+- The update() method of dictionaries now accepts generic mapping
94
+ objects. Specifically the argument object must support the .keys()
95
+ and __getitem__() methods. This allows you to say, for example,
96
+ {}.update(UserDict())
97
+
98
- Iterators were added; this is a generalized way of providing values
99
to a for loop. See PEP 234. There's a new built-in function iter()
100
to return an iterator. There's a new protocol to get the next value
0 commit comments