Fix example description (#1293)

With two elements, the starred middle expression just is an empty list.
This commit is contained in:
Georg Brandl 2020-02-03 10:50:41 +01:00 committed by GitHub
parent 56268fbbeb
commit 89b0b69863
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ that are not assigned to any of the mandatory expressions, or an
empty list if there are no such items. empty list if there are no such items.
For example, if ``seq`` is a slicable sequence, all the following 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[0], list(seq[1:-1]), seq[-1]
a, *b, c = seq a, *b, c = seq