Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Apr 2, 2020

@pablogsal
Copy link
Member Author

As a bonus now we print the actual keyword that is repeated.

Before:

❯ python lel.py                       
  File "lel.py", line 1
    f(1, x=2, *(3, 4), x=5)
                       ^
SyntaxError: keyword argument repeated

After:

❯ ./python lel.py  
  File "/home/pablogsal/github/python/master/lel.py", line 1
    f(1, x=2, *(3, 4), x=5)
                       ^
SyntaxError: keyword argument repeated: x

@pablogsal
Copy link
Member Author

CC: @lysnikolaou

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! That was simpler than I expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants