Lines Matching defs:shelve
3 import shelve
53 s = shelve.Shelf(d1, protocol=2, writeback=False)
69 s = shelve.open(filename=filename if filename is not None else self.fn,
97 with shelve.Shelf(d1, protocol=0) as s:
101 with shelve.Shelf(d2, protocol=1) as s:
111 with shelve.Shelf(d1, protocol=2, writeback=False) as s:
118 with shelve.Shelf(d2, protocol=2, writeback=True) as s:
131 shelve.Shelf(d)[key] = [1]
134 shelve.Shelf(d, keyencoding='latin-1')[key] = [1]
137 s = shelve.Shelf(d, keyencoding='ascii')
145 with shelve.Shelf(d, writeback=True) as s:
154 with shelve.Shelf(d1, protocol=2, writeback=False) as s:
167 with shelve.Shelf({}) as s:
172 type2test = shelve.Shelf
180 return shelve.Shelf(byteskeydict(), **self._args)
188 x = shelve.open(self.base_path + str(self.counter), **self._args)