reminder for code fix when general genexprs are supported
authorStefan Behnel <scoder@users.berlios.de>
Sat, 17 Jul 2010 08:07:33 +0000 (10:07 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 17 Jul 2010 08:07:33 +0000 (10:07 +0200)
Cython/Compiler/Optimize.py

index 02a6bd87898b3bbac597bd1028749ecff05c4127..9e661aa6467e60b56104f429ed399b5d8ce9fb56 100644 (file)
@@ -1059,6 +1059,12 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform):
             if node.expr in self.yield_nodes:
                 self.yield_stat_nodes[node.expr] = node
 
+        def __visit_GeneratorExpressionNode(self, node):
+            # enable when we support generic generator expressions
+            #
+            # everything below this node is out of scope
+            pass
+
     def _find_single_yield_expression(self, node):
         collector = self.YieldNodeCollector()
         collector.visitchildren(node)