[pypy-svn] r66383 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler

benjamin at codespeak.net benjamin at codespeak.net
Sat Jul 18 21:00:47 CEST 2009


Author: benjamin
Date: Sat Jul 18 21:00:46 2009
New Revision: 66383

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
Log:
hint

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py	Sat Jul 18 21:00:46 2009
@@ -888,7 +888,9 @@
         if_cleanup = self.new_block()
         anchor = self.new_block()
         gen = gens[gen_index]
-        gen.iter.walkabout(self)
+        it = gen.iter
+        assert isinstance(it, ast.expr)
+        it.walkabout(self)
         self.emit_op(ops.GET_ITER)
         self.use_next_block(start)
         self.emit_jump(ops.FOR_ITER, anchor)



More information about the Pypy-commit mailing list