diff options
author | Guido van Rossum <guido@python.org> | 2001-11-15 20:33:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-11-15 20:33:10 (GMT) |
commit | 3fc08d23c701d793872c3f9961fd24296e61a3d6 (patch) | |
tree | fe6d03b5196956670710b73af987e09fb297fa54 /Misc/NEWS | |
parent | 3d27df07344039a5fdd741194dfb9c0a3a11a091 (diff) | |
download | cpython-3fc08d23c701d793872c3f9961fd24296e61a3d6.zip cpython-3fc08d23c701d793872c3f9961fd24296e61a3d6.tar.gz cpython-3fc08d23c701d793872c3f9961fd24296e61a3d6.tar.bz2 |
Group dict[ionary] news together; and use dict() instead of
dictionary().
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -18,6 +18,10 @@ Type/class unification and new-style classes - The new builtin dictionary() constructor, and dictionary type, have been renamed to dict. This reflects a decade of common usage. +- dict() now accepts an iterable object producing 2-sequences. For + example, dict(d.items()) == d for any dictionary d. The argument, + and the elements of the argument, can be any iterable objects. + - New-style classes can now have a __del__ method, which is called when the instance is deleted (just like for classic classes). @@ -25,11 +29,6 @@ Type/class unification and new-style classes instances of new-style classes that have a __dict__ (unless the base class forbids it). -- dictionary() now accepts an iterable object producing 2-sequences. - For example, dictionary(d.items()) == d for any dictionary d. The - argument, and the elements of the argument, can be any iterable - objects. - - Methods of built-in types now properly check for keyword arguments (formerly these were silently ignored). The only built-in methods that take keyword arguments are __call__, __init__ and __new__. |