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)
--HG--
extra : transplant_source : %96m%88%15%985T%8E%FF%CEW%16%5B%E3%1E%90%8E%23%00%AE

Cython/Compiler/Nodes.py

index ef4c823de6c43b55f76169661ec988d90882e505..ec3d3317f42a08b2bd9cc8f7a6a74d8b4c9c9c1f 100644 (file)
@@ -3997,9 +3997,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)