projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c099b42
)
fix for normal assignments to a non-sequence LHS
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 9 Apr 2009 10:51:50 +0000
(12:51 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 9 Apr 2009 10:51:50 +0000
(12:51 +0200)
Cython/Compiler/Parsing.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Parsing.py
b/Cython/Compiler/Parsing.py
index aa1b4f9502bf63d7683453cab86fc894ed41dba5..388d442191677c8797e6f58c26eec7fb286d2e55 100644
(file)
--- 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])