mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +00:00
Patch #1682205: a TypeError while unpacking an iterable is no longer
masked by a generic one with the message "unpack non-sequence". (backport from rev. 54480)
This commit is contained in:
parent
f94e89c578
commit
8a10ea4613
3 changed files with 7 additions and 6 deletions
|
|
@ -55,7 +55,7 @@ Unpacking non-sequence
|
|||
>>> a, b, c = 7
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
TypeError: unpack non-sequence
|
||||
TypeError: 'int' object is not iterable
|
||||
|
||||
Unpacking tuple of wrong size
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue