]> granicus.if.org Git - python/commitdiff
Rephrase dict.fromkeys() news.
authorGuido van Rossum <guido@python.org>
Wed, 27 Nov 2002 13:10:40 +0000 (13:10 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 27 Nov 2002 13:10:40 +0000 (13:10 +0000)
Misc/NEWS

index 066f8a5b3676ace7974164eddde355d5eb6ad615..4109391e1045a71a7b3074d6b553f452e02c205a 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -270,10 +270,11 @@ Core and builtins
   an optional argument that specifies the characters to strip.  For
   example, "Foo!!!?!?!?".rstrip("?!") -> "Foo".
 
-- Dictionaries have a new class method, fromkeys(iterable, value=None).
-  It constructs a new dictionary with keys taken from the iterable and
-  all values set to a single value.  It is used for building membership
-  tests and for removing duplicates from sequences.
+- There's a new dictionary constructor (a class method of the dict
+  class), dict.fromkeys(iterable, value=None).  It constructs a
+  dictionary with keys taken from the iterable and all values set to a
+  single value.  It can be used for building sets and for removing
+  duplicates from sequences.
 
 - Added a new dict method pop(key).  This removes and returns the
   value corresponding to key.  [SF patch #539949]