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]
143 if self.dict is None:
148 self.dict.close()
155 self.dict = _ClosedDict()
157 self.dict = None
172 if hasattr(self.dict, 'sync'):
173 self.dict.sync()
189 def __init__(self, dict, protocol=None, writeback=False):
190 Shelf.__init__(self, dict, protocol, writeback)
193 (key, value) = self.dict.set_location(key)
198 (key, value) = self.dict.next()
203 (key, value) = self.dict.previous()
208 (key, value) = self.dict.first()
213 (key, value) = self.dict.last()