Message408248
The error range for the "duplicate argument in function definition" SyntaxError is too large:
$ cat x.py
def f(a, b, c, d, e, f, g, a): pass
$ python x.py
File "/home/cfbolz/projects/cpython/x.py", line 1
def f(a, b, c, d, e, f, g, a): pass
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: duplicate argument 'a' in function definition
I would expect only the second 'a' to be underlined.
I can try to fix this. |
|
Date |
User |
Action |
Args |
2021-12-10 21:24:21 | Carl.Friedrich.Bolz | set | recipients:
+ Carl.Friedrich.Bolz, pablogsal |
2021-12-10 21:24:21 | Carl.Friedrich.Bolz | set | messageid: <1639171461.19.0.894286110082.issue46042@roundup.psfhosted.org> |
2021-12-10 21:24:21 | Carl.Friedrich.Bolz | link | issue46042 messages |
2021-12-10 21:24:21 | Carl.Friedrich.Bolz | create | |
|