diff options
author | Georg Brandl <georg@python.org> | 2009-03-31 22:40:16 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-03-31 22:40:16 (GMT) |
commit | 354e4cbb1c5f8297631146dd119799eab987d42f (patch) | |
tree | 53c3ed44aa1611f1ec4dc9e003f24aaf59bbc813 /Doc/tutorial | |
parent | 44fb2a93140269612090e237d87cd301643bda3d (diff) | |
download | cpython-354e4cbb1c5f8297631146dd119799eab987d42f.zip cpython-354e4cbb1c5f8297631146dd119799eab987d42f.tar.gz cpython-354e4cbb1c5f8297631146dd119799eab987d42f.tar.bz2 |
#5018: remove confusing paragraph.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/datastructures.rst | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 0b7d7bc..ec62fad 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -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. |