[Python-checkins] r70915 -python/trunk/Doc/tutorial/datastructures.rst
Raymond Hettinger
python at rcn.com
Wed Apr 1 00:47:01 CEST 2009
> -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!
A general comment on writing style in the docs: we ought to go easy on
exclamation points and keep a more even-toned style.
Raymond
More information about the Python-checkins
mailing list