From: Vitja Makarov Date: Thu, 3 Mar 2011 19:41:35 +0000 (+0300) Subject: Fix ticket #664 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=42091eacddc11bbbdf76ca243c62a278cf21f02c;p=cython.git Fix ticket #664 --- diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index cc367a79..aeacb791 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -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