From 84f3ae6acecc0a609fd9e2c1ad594e0274aa716c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 25 Nov 2010 23:13:21 +0100 Subject: [PATCH] fix for parallel assignments: subexpressions were incorrectly set up in reversed order --- Cython/Compiler/ParseTreeTransforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index bfa5a046..4d9037d2 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -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 -- 2.26.2