Lines Matching full:shelf
3 A "shelf" is a persistent, dictionary-like object. The difference
4 with dbm databases is that the values (not the keys!) in a shelf can
64 __all__ = ["Shelf", "BsdDbShelf", "DbfilenameShelf", "open"]
70 raise ValueError('invalid operation on closed shelf')
77 class Shelf(collections.abc.MutableMapping): class
78 """Base class for shelf implementations.
175 class BsdDbShelf(Shelf):
176 """Shelf implementation using the "BSD" db interface.
190 Shelf.__init__(self, dict, protocol, writeback, keyencoding)
218 class DbfilenameShelf(Shelf):
219 """Shelf implementation using the "dbm" generic dbm interface.
227 Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
230 """Remove all items from the shelf."""