Commits

Armin Rigo committed ea5fb9b

Prebuilt RPython 'iteritems' objects are not supported. In case we see any
W_BaseDictMultiIterObject instance, crash early (makes it easier to know where it is).

  • Participants
  • Parent commits 7ddd3c1

Comments (0)

Files changed (1)

pypy/objspace/std/dictmultiobject.py

             return self.len - self.pos
         return 0
 
+    def _cleanup_(self):
+        raise Exception("seeing a prebuilt %r object" % (
+            self.__class__,))
+
 class BaseKeyIterator(BaseIteratorImplementation):
     next_key = _new_next('key')
 
         w_ret = space.newtuple([new_inst, space.newtuple([w_res])])
         return w_ret
 
+    def _cleanup_(self):
+        raise Exception("seeing a prebuilt %r object" % (
+            self.__class__,))
+
 
 class W_DictMultiIterKeysObject(W_BaseDictMultiIterObject):
     def descr_next(self, space):