Fix ticket #664
authorVitja Makarov <vitja.makarov@gmail.com>
Thu, 3 Mar 2011 19:41:35 +0000 (22:41 +0300)
committerVitja Makarov <vitja.makarov@gmail.com>
Thu, 3 Mar 2011 19:41:35 +0000 (22:41 +0300)
Cython/Compiler/ParseTreeTransforms.py

index cc367a795b40db0f0cdfea74da76b9b5c185267d..aeacb79175afe4e9300272e460acd6ab7ac9c6e4 100644 (file)
@@ -462,7 +462,7 @@ def map_starred_assignment(lhs_targets, starred_assignments, lhs_args, rhs_args)
 
     # right side of the starred target
     for i, (targets, expr) in enumerate(zip(lhs_targets[-lhs_remaining:],
-                                            lhs_args[-lhs_remaining:])):
+                                            lhs_args[starred + 1:])):
         targets.append(expr)
 
     # the starred target itself, must be assigned a (potentially empty) list