From: Stefan Behnel Date: Thu, 9 Apr 2009 10:51:50 +0000 (+0200) Subject: fix for normal assignments to a non-sequence LHS X-Git-Tag: 0.12.alpha0~328 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=118c61fa8163090cbba56ff2af2713417ccfbe05;p=cython.git fix for normal assignments to a non-sequence LHS --- 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])