From: <fwi...@us...> - 2008-08-09 17:35:11
|
Revision: 5124 http://jython.svn.sourceforge.net/jython/?rev=5124&view=rev Author: fwierzbicki Date: 2008-08-09 17:35:06 +0000 (Sat, 09 Aug 2008) Log Message: ----------- Call __iter__ on the iter part of gen expressions. Modified Paths: -------------- branches/asm/src/org/python/compiler/CodeCompiler.java Modified: branches/asm/src/org/python/compiler/CodeCompiler.java =================================================================== --- branches/asm/src/org/python/compiler/CodeCompiler.java 2008-08-09 17:07:19 UTC (rev 5123) +++ branches/asm/src/org/python/compiler/CodeCompiler.java 2008-08-09 17:35:06 UTC (rev 5124) @@ -2012,6 +2012,7 @@ visit(new Name(node, tmp_append, expr_contextType.Load)); visit(iter); + code.invokevirtual("org/python/core/PyObject", "__iter__", "()Lorg/python/core/PyObject;"); code.invokevirtual("org/python/core/PyObject", "__call__", "(" + $pyObj + ")" + $pyObj); visit(new Delete(n, new exprType[] { new Name(n, tmp_append, expr_contextType.Del) })); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |