[Python-checkins] python/dist/src/Misc NEWS,1.522,1.523
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
2002年11月14日 22:46:15 -0800
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv2280/Misc
Modified Files:
NEWS
Log Message:
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.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.522
retrieving revision 1.523
diff -C2 -d -r1.522 -r1.523
*** NEWS 14 Nov 2002 23:31:58 -0000 1.522
--- NEWS 15 Nov 2002 06:46:12 -0000 1.523
***************
*** 382,385 ****
--- 382,394 ----
-------
+ - 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.