mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
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:
parent
ca1a775ab9
commit
3f06189332
2 changed files with 38 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue