From 118c61fa8163090cbba56ff2af2713417ccfbe05 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 9 Apr 2009 12:51:50 +0200 Subject: [PATCH] fix for normal assignments to a non-sequence LHS --- Cython/Compiler/Parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index aa1b4f95..388d4421 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -928,7 +928,7 @@ def flatten_parallel_assignments(input, output): if not lhs.is_sequence_constructor: if lhs.is_starred: error(lhs.pos, "starred assignment target must be in a list or tuple") - output.append(lhs) + output.append([lhs,rhs]) continue lhs_size = len(lhs.args) starred_targets = sum([1 for expr in lhs.args if expr.is_starred]) -- 2.26.2