#5018: remove confusing paragraph.

This commit is contained in:
Georg Brandl 2009-03-31 22:40:16 +00:00
parent 44fb2a9314
commit 354e4cbb1c
1 changed files with 5 additions and 7 deletions

View File

@ -401,13 +401,11 @@ The reverse operation is also possible::
>>> x, y, z = t
This is called, appropriately enough, *sequence unpacking*. Sequence unpacking
requires the list of variables on the left to have the same number of elements
as the length of the sequence. Note that multiple assignment is really just a
combination of tuple packing and sequence unpacking!
There is a small bit of asymmetry here: packing multiple values always creates
a tuple, and unpacking works for any sequence.
This is called, appropriately enough, *sequence unpacking* and works for any
sequence on the right-hand side. Sequence unpacking requires the list of
variables on the left to have the same number of elements as the length of the
sequence. Note that multiple assignment is really just a combination of tuple
packing and sequence unpacking!
.. XXX Add a bit on the difference between tuples and lists.