mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Language reference: Remove duplicated text about iterable unpacking (GH-25212)
This commit is contained in:
parent
281f980d35
commit
4f5d56f8f3
1 changed files with 1 additions and 3 deletions
|
@ -124,9 +124,7 @@ square brackets, is recursively defined as follows.
|
||||||
* If the target list is a single target with no trailing comma,
|
* If the target list is a single target with no trailing comma,
|
||||||
optionally in parentheses, the object is assigned to that target.
|
optionally in parentheses, the object is assigned to that target.
|
||||||
|
|
||||||
* Else: The object must be an iterable with the same number of
|
* Else:
|
||||||
items as there are targets in the target list, and the items are assigned,
|
|
||||||
from left to right, to the corresponding targets.
|
|
||||||
|
|
||||||
* If the target list contains one target prefixed with an asterisk, called a
|
* If the target list contains one target prefixed with an asterisk, called a
|
||||||
"starred" target: The object must be an iterable with at least as many items
|
"starred" target: The object must be an iterable with at least as many items
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue