Touch up the news for dict() keyword args.
This commit is contained in:
parent
6e596b6895
commit
8b1e74b274
|
@ -11,8 +11,9 @@ What's New in Python 2.3 alpha 1?
|
||||||
|
|
||||||
Type/class unification and new-style classes
|
Type/class unification and new-style classes
|
||||||
--------------------------------------------
|
--------------------------------------------
|
||||||
- dict() now accepts keyword arguments so that dict(one=1,two=2)
|
|
||||||
is the equivalent of dict([('one',1),('two',2)]). Accordingly,
|
- dict() now accepts keyword arguments so that dict(one=1, two=2)
|
||||||
|
is the equivalent of {"one": 1, "two": 2}. Accordingly,
|
||||||
the existing (but undocumented) 'items' keyword argument has
|
the existing (but undocumented) 'items' keyword argument has
|
||||||
been eliminated. This means that dict(items=someMapping) now has
|
been eliminated. This means that dict(items=someMapping) now has
|
||||||
a different meaning than before.
|
a different meaning than before.
|
||||||
|
|
Loading…
Reference in New Issue