PyDocs

Nav

Data Persistence

BsdDbShelf

shelve

class (source)
  • BsdDbShelf(dict, protocol=None, writeback=False, keyencoding='utf-8', *, serializer=None, deserializer=None)
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.
Changed in 3.15
  • 3.15: Added the serializer and deserializer parameters.
0 Examples
No examples for shelve/BsdDbShelf.
See Also
No see-alsos for shelve/BsdDbShelf
0 Notes
No notes for BsdDbShelf