summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 89303ba..066f8a5 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -270,6 +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.
+
- Added a new dict method pop(key). This removes and returns the
value corresponding to key. [SF patch #539949]