this is patch

[ 988698 ] compiler.transformer fix for (a, b) = 1, 2

fixing bug

[ 988613 ] compiler.transformer and tuple unpacking
This commit is contained in:
Michael W. Hudson 2004-07-12 13:15:56 +00:00
parent ca1a775ab9
commit 3f06189332
2 changed files with 38 additions and 1 deletions

View file

@ -929,7 +929,7 @@ class Transformer:
# loop to avoid trivial recursion
while 1:
t = node[0]
if t == symbol.exprlist or t == symbol.testlist:
if t == symbol.exprlist or t == symbol.testlist or t == symbol.testlist_gexp:
if len(node) > 2:
return self.com_assign_tuple(node, assigning)
node = node[1]