Class 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.
|
|
| __init__(self,
dict,
protocol=None,
writeback=False) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
__init__(self,
dict,
protocol=None,
writeback=False)
(Constructor)
|
|
- Overrides:
Shelf.__init__
|