Lines Matching full:shelf
53 s = shelve.Shelf(d1, protocol=2, writeback=False)
64 self.fail('Closed shelf should not find a key')
87 with shelve.Shelf(d1, protocol=0) as s:
91 with shelve.Shelf(d2, protocol=1) as s:
101 with shelve.Shelf(d1, protocol=2, writeback=False) as s:
108 with shelve.Shelf(d2, protocol=2, writeback=True) as s:
121 shelve.Shelf(d)[key] = [1]
124 shelve.Shelf(d, keyencoding='latin-1')[key] = [1]
127 s = shelve.Shelf(d, keyencoding='ascii')
135 with shelve.Shelf(d, writeback=True) as s:
144 with shelve.Shelf(d1, protocol=2, writeback=False) as s:
154 self.fail('Closed shelf should not find a key')
157 with shelve.Shelf({}) as s:
162 type2test = shelve.Shelf
170 return shelve.Shelf(byteskeydict(), **self._args)