Home | History | Annotate | Download | only in Lib

Lines Matching refs:dict

76     'Marker for a closed dict.  Access attempts raise a ValueError.'

92 def __init__(self, dict, protocol=None, writeback=False):
93 self.dict = dict
101 return self.dict.keys()
104 return len(self.dict)
107 return key in self.dict
110 return key in self.dict
113 if key in self.dict:
121 f = StringIO(self.dict[key])
133 self.dict[key] = f.getvalue()
136 del self.dict[key]
145 self.dict.close()
151 self.dict = _ClosedDict()
153 self.dict = None
168 if hasattr(self.dict, 'sync'):
169 self.dict.sync()
185 def __init__(self, dict, protocol=None, writeback=False):
186 Shelf.__init__(self, dict, protocol, writeback)
189 (key, value) = self.dict.set_location(key)
194 (key, value) = self.dict.next()
199 (key, value) = self.dict.previous()
204 (key, value) = self.dict.first()
209 (key, value) = self.dict.last()