fix for parallel assignments: subexpressions were incorrectly set up in reversed...
authorStefan Behnel <scoder@users.berlios.de>
Thu, 25 Nov 2010 22:13:21 +0000 (23:13 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 25 Nov 2010 22:13:21 +0000 (23:13 +0100)
Cython/Compiler/ParseTreeTransforms.py

index bfa5a04635542cdc4c89af91459fc9aeb31de45d..4d9037d2d84aa41518f7887413370a63229ecbef 100644 (file)
@@ -286,7 +286,7 @@ class PostParse(ScopeTrackingTransform):
             duplicates_and_temps = [ (temp.expression, temp)
                                      for temp in temp_refs ]
             sort_common_subsequences(duplicates_and_temps)
-            for _, temp_ref in duplicates_and_temps[::-1]:
+            for _, temp_ref in duplicates_and_temps:
                 assign_node = LetNode(temp_ref, assign_node)
 
         return assign_node