[Python-checkins] r70915 - python/trunk/Doc/tutorial/datastructures.rst
georg.brandl
python-checkins at python.org
Wed Apr 1 00:40:16 CEST 2009
Author: georg.brandl
Date: Wed Apr 1 00:40:16 2009
New Revision: 70915
Log:
#5018: remove confusing paragraph.
Modified:
python/trunk/Doc/tutorial/datastructures.rst
Modified: python/trunk/Doc/tutorial/datastructures.rst
==============================================================================
--- python/trunk/Doc/tutorial/datastructures.rst (original)
+++ python/trunk/Doc/tutorial/datastructures.rst Wed Apr 1 00:40:16 2009
@@ -401,13 +401,11 @@
>>> 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.
More information about the Python-checkins
mailing list