From: Robert Bradshaw Date: Wed, 25 Mar 2009 12:37:19 +0000 (-0700) Subject: loop cleanup, comment X-Git-Tag: 0.12.alpha0~365 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4f86ca249b53b5c09143964004a5b863eaca4a62;p=cython.git loop cleanup, comment --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 3275ba17..d63a4c11 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -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)