summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-11-15 06:46:14 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-11-15 06:46:14 (GMT)
commit7994716b6bcaeca64f47b7b3ed4e411bb6afc415 (patch)
tree0815d4b85257de2a72984d5c7026dab279b053e7 /Misc
parent3a7f405f5b3388b5ba3cf807100627ae5fbf696f (diff)
downloadcpython-7994716b6bcaeca64f47b7b3ed4e411bb6afc415.zip
cpython-7994716b6bcaeca64f47b7b3ed4e411bb6afc415.tar.gz
cpython-7994716b6bcaeca64f47b7b3ed4e411bb6afc415.tar.bz2
SF patch #520382: Expand shelve.py to have a full dictionary interface
and add a mixin to UserDict.py to make it easier to implement a full dictionary interface.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 34f70b7..7a6b780 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -381,6 +381,15 @@ Extension modules
Library
-------
+- UserDict.py now defines a DictMixin class which defines all dictionary
+ methods for classes that already have a minimum mapping interface.
+ This greatly simplifies writing classes that need to be substitutable
+ for dictionaries (such as the shelve module).
+
+- shelve.py now subclasses from UserDict.DictMixin. Now shelve supports
+ all dictionary methods. This eases the transition to persistent
+ storage for scripts originally written with dictionaries in mind.
+
- A new package, logging, implements the logging API defined by PEP
282. The code is written by Vinay Sajip.