File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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__.
You can’t perform that action at this time.
0 commit comments