Mercurial > libervia-backend
comparison src/memory/persistent.py @ 979:8f8bdd31375a
core (memory): added __iter__ to PersistentDict
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 07 Apr 2014 16:22:33 +0200 |
parents | 1fe00f0c9a91 |
children | 301b342c697a |
comparison
equal
deleted
inserted
replaced
978:218149ea1a35 | 979:8f8bdd31375a |
---|---|
83 return self._cache.__len__() | 83 return self._cache.__len__() |
84 | 84 |
85 def __contains__(self, key): | 85 def __contains__(self, key): |
86 return self._cache.__contains__(key) | 86 return self._cache.__contains__(key) |
87 | 87 |
88 def __iter__(self): | |
89 return self._cache.__iter__() | |
90 | |
88 def __getitem__(self, key): | 91 def __getitem__(self, key): |
89 return self._cache.__getitem__(key) | 92 return self._cache.__getitem__(key) |
90 | 93 |
91 def __setitem__(self, key, value): | 94 def __setitem__(self, key, value): |
92 if not self.profile: | 95 if not self.profile: |