Lines Matching full:shelf
51 s = shelve.Shelf(d1, protocol=2, writeback=False)
62 self.fail('Closed shelf should not find a key')
95 with shelve.Shelf(d1, protocol=0) as s:
99 with shelve.Shelf(d2, protocol=1) as s:
109 with shelve.Shelf(d1, protocol=2, writeback=False) as s:
116 with shelve.Shelf(d2, protocol=2, writeback=True) as s:
129 shelve.Shelf(d)[key] = [1]
132 shelve.Shelf(d, keyencoding='latin-1')[key] = [1]
135 s = shelve.Shelf(d, keyencoding='ascii')
143 with shelve.Shelf(d, writeback=True) as s:
152 with shelve.Shelf(d1, protocol=2, writeback=False) as s:
162 self.fail('Closed shelf should not find a key')
165 with shelve.Shelf({}) as s:
170 type2test = shelve.Shelf
178 return shelve.Shelf(byteskeydict(), **self._args)