Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Bug report
Bug description:
The following input will cause aSyntaxError. That's all well and good, but the message for theSyntaxError is incorrect.
f(A,*)
SyntaxError:iterableargumentunpackingfollowskeywordargumentunpacking
This is not correct. That error message is intended for cases like thisf(**kwargs, *args).
This bug is present on3.9,3.10, and3.11. I haven't tested3.12, but I suspect that it is present there as well. The bug is not present on3.8.
CPython versions tested on:
3.8 3.9, 3.10, 3.11
Operating systems tested on:
Linux, Windows