[Python-checkins] python/dist/src/Lib/bsddb dbobj.py,1.3,1.4 dbshelve.py,1.5,1.6
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Tue, 04 Feb 2003 20:12:44 -0800
Update of /cvsroot/python/python/dist/src/Lib/bsddb
In directory sc8-pr-cvs1:/tmp/cvs-serv8663
Modified Files:
dbobj.py dbshelve.py
Log Message:
SF patch #674396: Apply UserDict.DictMixin to expand dbshelve and dbojb
to have a full dictionary interface.
Index: dbobj.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bsddb/dbobj.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** dbobj.py 30 Dec 2002 20:52:07 -0000 1.3
--- dbobj.py 5 Feb 2003 04:12:41 -0000 1.4
***************
*** 17,20 ****
--- 17,21 ----
import db
+ from UserDict import DictMixin
class DBEnv:
***************
*** 86,90 ****
! class DB:
def __init__(self, dbenv, *args, **kwargs):
# give it the proper DBEnv C object that its expecting
--- 87,91 ----
! class DB(DictMixin):
def __init__(self, dbenv, *args, **kwargs):
# give it the proper DBEnv C object that its expecting
Index: dbshelve.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bsddb/dbshelve.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** dbshelve.py 28 Jan 2003 17:20:42 -0000 1.5
--- dbshelve.py 5 Feb 2003 04:12:41 -0000 1.6
***************
*** 31,34 ****
--- 31,35 ----
import cPickle
+ from UserDict import DictMixin
try:
# For Python 2.3
***************
*** 76,80 ****
#---------------------------------------------------------------------------
! class DBShelf:
"""
A shelf to hold pickled objects, built upon a bsddb DB object. It
--- 77,81 ----
#---------------------------------------------------------------------------
! class DBShelf(DictMixin):
"""
A shelf to hold pickled objects, built upon a bsddb DB object. It