File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ Core and Builtins
7575- Classes listed in an 'except' clause must inherit from BaseException.
7676
7777- PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;
78- and .keys(), .items(), .values() return dict views.
78+ and .keys(), .items(), .values() return dict views, which behave
79+ like sets.
7980
8081- PEP 3105: print is now a function. Also (not in the PEP) the
8182 'softspace' attribute of files is now gone (since print() doesn't use
@@ -151,10 +152,13 @@ Core and Builtins
151152
152153- Remove C API support for restricted execution.
153154
154- - zip returns an iterator
155+ - zip(), map() and filter() now return iterators, behaving like their
156+ itertools counterparts. This also affect map()'s behavior on
157+ sequences of unequal length -- it now stops after the shortest one
158+ is exhausted.
155159
156160- Additions:
157- set literals, ellipsis literal
161+ set literals, set comprehensions, ellipsis literal.
158162
159163- Added class decorators per PEP 3129.
160164
You can’t perform that action at this time.
0 commit comments