Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 354e4cb

Browse files
committed
python#5018: remove confusing paragraph.
1 parent 44fb2a9 commit 354e4cb

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

Doc/tutorial/datastructures.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)