Module shelve :: Class BsdDbShelf
[hide private]
[frames] | no frames]

_ClassType BsdDbShelf

UserDict.DictMixin --+    
                     |    
                 Shelf --+
                         |
                        BsdDbShelf

Shelf implementation using the "BSD" db interface.

This adds methods first(), next(), previous(), last() and set_location() that have no counterpart in [g]dbm databases.

The actual database must be opened using one of the "bsddb" modules "open" routines (i.e. bsddb.hashopen, bsddb.btopen or bsddb.rnopen) and passed to the constructor.

See the module's __doc__ string for an overview of the interface.

Instance Methods [hide private]
 
__init__(self, dict, protocol=None, writeback=False)
 
set_location(self, key)
 
next(self)
 
previous(self)
 
first(self)
 
last(self)

Inherited from Shelf: __contains__, __del__, __delitem__, __getitem__, __len__, __setitem__, close, get, has_key, keys, sync

Inherited from UserDict.DictMixin: __cmp__, __iter__, __repr__, clear, items, iteritems, iterkeys, itervalues, pop, popitem, setdefault, update, values

Method Details [hide private]

__init__(self, dict, protocol=None, writeback=False)
(Constructor)

 
Overrides: Shelf.__init__