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

Skip to content

Commit 3fc08d2

Browse files
committed
Group dict[ionary] news together; and use dict() instead of
dictionary().
1 parent 3d27df0 commit 3fc08d2

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Misc/NEWS

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,17 @@ Type/class unification and new-style classes
1818
- The new builtin dictionary() constructor, and dictionary type, have
1919
been renamed to dict. This reflects a decade of common usage.
2020

21+
- dict() now accepts an iterable object producing 2-sequences. For
22+
example, dict(d.items()) == d for any dictionary d. The argument,
23+
and the elements of the argument, can be any iterable objects.
24+
2125
- New-style classes can now have a __del__ method, which is called
2226
when the instance is deleted (just like for classic classes).
2327

2428
- Assignment to object.__dict__ is now possible, for objects that are
2529
instances of new-style classes that have a __dict__ (unless the base
2630
class forbids it).
2731

28-
- dictionary() now accepts an iterable object producing 2-sequences.
29-
For example, dictionary(d.items()) == d for any dictionary d. The
30-
argument, and the elements of the argument, can be any iterable
31-
objects.
32-
3332
- Methods of built-in types now properly check for keyword arguments
3433
(formerly these were silently ignored). The only built-in methods
3534
that take keyword arguments are __call__, __init__ and __new__.

0 commit comments

Comments
 (0)