changeset 979:8f8bdd31375a

core (memory): added __iter__ to PersistentDict
author Goffi <goffi@goffi.org>
date Mon, 07 Apr 2014 16:22:33 +0200
parents 218149ea1a35
children f0bba18835ef
files src/memory/persistent.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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)