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

Skip to content

Commit 8b1e74b

Browse files
committed
Touch up the news for dict() keyword args.
1 parent 6e596b6 commit 8b1e74b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Misc/NEWS

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ What's New in Python 2.3 alpha 1?
1111

1212
Type/class unification and new-style classes
1313
--------------------------------------------
14-
- dict() now accepts keyword arguments so that dict(one=1,two=2)
15-
is the equivalent of dict([('one',1),('two',2)]). Accordingly,
14+
15+
- dict() now accepts keyword arguments so that dict(one=1, two=2)
16+
is the equivalent of {"one": 1, "two": 2}. Accordingly,
1617
the existing (but undocumented) 'items' keyword argument has
17-
been eliminated. This means that dict(items=someMapping) now has
18+
been eliminated. This means that dict(items=someMapping) now has
1819
a different meaning than before.
1920

2021
- int() now returns a long object if the argument is outside the

0 commit comments

Comments
 (0)