loop cleanup, comment
authorRobert Bradshaw <robertwb@math.washington.edu>
Wed, 25 Mar 2009 12:37:19 +0000 (05:37 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Wed, 25 Mar 2009 12:37:19 +0000 (05:37 -0700)
Cython/Compiler/Nodes.py

index 3275ba17977c99c36ba3bebe360e4397c66f1bde..d63a4c1124f5f08f41b88b440acd2e9eff3e7e0c 100644 (file)
@@ -3947,9 +3947,9 @@ class ForFromStatNode(LoopNode, StatNode):
         self.body.generate_execution_code(code)
         code.put_label(code.continue_label)
         if self.py_loopvar_node:
-            
-            self.py_loopvar_node.generate_evaluation_code(code)
-            self.target.generate_assignment_code(self.py_loopvar_node, code)
+            # Reassign py variable to loop var here.
+            # (For consistancy, should rarely come up in practice.)
+            pass
         code.putln("}")
         break_label = code.break_label
         code.set_loop_labels(old_loop_labels)