diff 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
line wrap: on
line diff
--- a/src/memory/persistent.py	Mon Apr 07 16:22:18 2014 +0200
+++ b/src/memory/persistent.py	Mon Apr 07 16:22:33 2014 +0200
@@ -85,6 +85,9 @@
     def __contains__(self, key):
         return self._cache.__contains__(key)
 
+    def __iter__(self):
+        return self._cache.__iter__()
+
     def __getitem__(self, key):
         return self._cache.__getitem__(key)