Both "x, y = 1" and "x = y = 1" are parsed correctly.
Parsing "x, y = 1" yields an Assign node with an assign_to list of a single Tuple (which holds the two Vars for x and y).
Parsing "x = y = 1" yields an Assign node with an assign_to list of two Vars for x and y.
Printing, however, separates items in the assign_to list by commas, which is incorrect.
Fix for #32.
Both "x, y = 1" and "x = y = 1" are parsed correctly. Parsing "x, y = 1" yields an
Assign
node with anassign_to
list of a singleTuple
(which holds the twoVar
s for x and y). Parsing "x = y = 1" yields anAssign
node with anassign_to
list of twoVar
s for x and y.Printing, however, separates items in the
assign_to
list by commas, which is incorrect.