mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
parent
13a6ee0af4
commit
4171bbe687
3 changed files with 26 additions and 9 deletions
|
@ -85,7 +85,14 @@ Unpacking sequence too short
|
|||
>>> a, *b, c, d, e = Seq()
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ValueError: need more than 3 values to unpack
|
||||
ValueError: not enough values to unpack (expected at least 4, got 3)
|
||||
|
||||
Unpacking sequence too short and target appears last
|
||||
|
||||
>>> a, b, c, d, *e = Seq()
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ValueError: not enough values to unpack (expected at least 4, got 3)
|
||||
|
||||
Unpacking a sequence where the test for too long raises a different kind of
|
||||
error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue