-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Duplicate keyword arguments should be a SyntaxError #116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@OddBloke did you find some time to look into this? Is this issue still relevant? |
Looks like it is still relevant:
|
I'd like to give a try on this issue. |
I think because it's a syntax error, you should do it in the compiler and check for the duplicates when you're compiling function arguments. |
vazrupe
added a commit
to vazrupe/RustPython
that referenced
this issue
Sep 23, 2019
vazrupe
added a commit
to vazrupe/RustPython
that referenced
this issue
Sep 25, 2019
vazrupe
added a commit
to vazrupe/RustPython
that referenced
this issue
Sep 26, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We currently treat them as a TypeError, but CPython rejects them as invalid syntax.
(This issue will be introduced in #115, but is small enough for me to come back and fix it after that has landed.)
The text was updated successfully, but these errors were encountered: