Author: Carl Friedrich Bolz <[email protected]>
Branch: dict-strategies
Changeset: r44536:669b808e8825
Date: 2011-05-26 14:21 +0200
http://bitbucket.org/pypy/pypy/changeset/669b808e8825/
Log: rpython fix
diff --git a/pypy/objspace/std/dictmultiobject.py
b/pypy/objspace/std/dictmultiobject.py
--- a/pypy/objspace/std/dictmultiobject.py
+++ b/pypy/objspace/std/dictmultiobject.py
@@ -209,16 +209,12 @@
return 0
def iter(self, w_dict):
- return EmptyIteratorImplementation()
+ return EmptyIteratorImplementation(self.space, w_dict)
def clear(self, w_dict):
return
-class EmptyIteratorImplementation(object):
- def next(self):
- return (None, None)
-
registerimplementation(W_DictMultiObject)
@@ -260,6 +256,10 @@
return self.len - self.pos
return 0
+class EmptyIteratorImplementation(IteratorImplementation):
+ def next(self):
+ return (None, None)
+
# concrete subclasses of the above
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit