fix for normal assignments to a non-sequence LHS
authorStefan Behnel <scoder@users.berlios.de>
Thu, 9 Apr 2009 10:51:50 +0000 (12:51 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 9 Apr 2009 10:51:50 +0000 (12:51 +0200)
Cython/Compiler/Parsing.py

index aa1b4f9502bf63d7683453cab86fc894ed41dba5..388d442191677c8797e6f58c26eec7fb286d2e55 100644 (file)
@@ -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])