diff options
author | Raymond Hettinger <python@rcn.com> | 2003-02-05 04:12:41 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-02-05 04:12:41 +0000 |
commit | 30a634e0a983f470e3663f93e182faed2128bbd9 (patch) | |
tree | aec92acb2bb5d051bb38a187f36ce2b195c0b094 /Lib/bsddb/dbshelve.py | |
parent | 35ad641b9931691d2b0371ee3a6fb57b59256dbd (diff) | |
download | cpython-git-30a634e0a983f470e3663f93e182faed2128bbd9.tar.gz |
SF patch #674396: Apply UserDict.DictMixin to expand dbshelve and dbojb
to have a full dictionary interface.
Diffstat (limited to 'Lib/bsddb/dbshelve.py')
-rw-r--r-- | Lib/bsddb/dbshelve.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/bsddb/dbshelve.py b/Lib/bsddb/dbshelve.py index d466361eeb..34dc607dc9 100644 --- a/Lib/bsddb/dbshelve.py +++ b/Lib/bsddb/dbshelve.py @@ -30,6 +30,7 @@ storage. #------------------------------------------------------------------------ import cPickle +from UserDict import DictMixin try: # For Python 2.3 from bsddb import db @@ -75,7 +76,7 @@ def open(filename, flags=db.DB_CREATE, mode=0660, filetype=db.DB_HASH, #--------------------------------------------------------------------------- -class DBShelf: +class DBShelf(DictMixin): """ A shelf to hold pickled objects, built upon a bsddb DB object. It automatically pickles/unpickles data objects going to/from the DB. |