]> granicus.if.org Git - python/commitdiff
Group dict[ionary] news together; and use dict() instead of
authorGuido van Rossum <guido@python.org>
Thu, 15 Nov 2001 20:33:10 +0000 (20:33 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 15 Nov 2001 20:33:10 +0000 (20:33 +0000)
dictionary().

Misc/NEWS

index bd8f51a56279f5970faccfce4458dc601666aec1..2d4c0c0017da896b1546b2ea8611bd1f3c301193 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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__.