-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-parsertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
The following input will cause a SyntaxError. That's all well and good, but the message for the SyntaxError is incorrect.
f(A,*)SyntaxError: iterable argument unpacking follows keyword argument unpackingThis is not correct. That error message is intended for cases like this f(**kwargs, *args).
This bug is present on 3.9, 3.10, and 3.11. I haven't tested 3.12, but I suspect that it is present there as well. The bug is not present on 3.8.
CPython versions tested on:
3.8 3.9, 3.10, 3.11
Operating systems tested on:
Linux, Windows
Linked PRs
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-parsertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error