Author: Carl Friedrich Bolz <[email protected]>
Branch: dict-strategies
Changeset: r44579:067a3007ccd6
Date: 2011-05-29 14:18 +0200
http://bitbucket.org/pypy/pypy/changeset/067a3007ccd6/

Log:    fix translation with celldicts

diff --git a/pypy/objspace/std/celldict.py b/pypy/objspace/std/celldict.py
--- a/pypy/objspace/std/celldict.py
+++ b/pypy/objspace/std/celldict.py
@@ -113,7 +113,7 @@
         return res.w_value
 
     def iter(self, w_dict):
-        return ModuleDictIteratorImplementation(self.space, w_dict)
+        return ModuleDictIteratorImplementation(self.space, self, w_dict)
 
     def keys(self, w_dict):
         space = self.space
@@ -161,8 +161,8 @@
 
 class ModuleDictIteratorImplementation(IteratorImplementation):
     def __init__(self, space, dictimplementation):
-        IteratorImplementation.__init__(self, space, dictimplementation)
-        dict_w = 
dictimplementation.strategy.unerase(dictimplementation.dstorage)
+        IteratorImplementation.__init__(self, space, strategy, 
dictimplementation)
+        dict_w = strategy.unerase(dictimplementation.dstorage)
         self.iterator = dict_w.iteritems()
 
     def next_entry(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to