Fix example description (#1293)
With two elements, the starred middle expression just is an empty list.
This commit is contained in:
parent
56268fbbeb
commit
89b0b69863
|
@ -66,7 +66,7 @@ that are not assigned to any of the mandatory expressions, or an
|
|||
empty list if there are no such items.
|
||||
|
||||
For example, if ``seq`` is a slicable sequence, all the following
|
||||
assignments are equivalent if ``seq`` has at least three elements::
|
||||
assignments are equivalent if ``seq`` has at least two elements::
|
||||
|
||||
a, b, c = seq[0], list(seq[1:-1]), seq[-1]
|
||||
a, *b, c = seq
|
||||
|
|
Loading…
Reference in New Issue