File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -401,13 +401,11 @@ The reverse operation is also possible::
401401
402402 >>> x, y, z = t
403403
404- This is called, appropriately enough, *sequence unpacking *. Sequence unpacking
405- requires the list of variables on the left to have the same number of elements
406- as the length of the sequence. Note that multiple assignment is really just a
407- combination of tuple packing and sequence unpacking!
408-
409- There is a small bit of asymmetry here: packing multiple values always creates
410- a tuple, and unpacking works for any sequence.
404+ This is called, appropriately enough, *sequence unpacking * and works for any
405+ sequence on the right-hand side. Sequence unpacking requires the list of
406+ variables on the left to have the same number of elements as the length of the
407+ sequence. Note that multiple assignment is really just a combination of tuple
408+ packing and sequence unpacking!
411409
412410.. XXX Add a bit on the difference between tuples and lists.
413411
You can’t perform that action at this time.
0 commit comments