This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Carl.Friedrich.Bolz
Recipients Carl.Friedrich.Bolz, pablogsal
Date 2021-12-10.21:24:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639171461.19.0.894286110082.issue46042@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-12-10 21:24:21Carl.Friedrich.Bolzsetrecipients: + Carl.Friedrich.Bolz, pablogsal
2021-12-10 21:24:21Carl.Friedrich.Bolzsetmessageid: <1639171461.19.0.894286110082.issue46042@roundup.psfhosted.org>
2021-12-10 21:24:21Carl.Friedrich.Bolzlinkissue46042 messages
2021-12-10 21:24:21Carl.Friedrich.Bolzcreate