Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf1be88

Browse files
committed
Add some miscellanea.
1 parent 2c7f314 commit cf1be88

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Misc/NEWS

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)