-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Description
When attempting to unpack a list (or any other non-mapping) as a mapping, one gets this error message:
builtins.TypeError: 'list' object is not a mapping
It's confusing, especially since sometimes the unpacking is done on a long multi-line statement, and it's not clear that the unpacking is the source of the error.
I suggest modifying to:
builtins.TypeError: Can't unpack 'list' object using ** because it's not a mapping
I'll be happy to submit a pull request if you agree with this change.
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement