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 BTaskaya
Recipients BTaskaya
Date 2021-05-06.19:34:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620329653.84.0.738145818276.issue44063@roundup.psfhosted.org>
In-reply-to
Content
Something that I've stumbled up while working on another patch is that, the compiler doesn't revert the end_lineno and the end_col_offset attributes back unlike regular lineno/col_offset. An example of this problem;
ar rcs libpython3.10d.a Modules/getbuildinfo.o Parser/token.o  Parser/pegen.o Parser/parser.o Parser/string_parser.o Parser/peg_api.(.venv38) (Python 3.8.5+) [ 10:33ÖS ]  [ isidentical@desktop:~/cpython/cpython(main✔) ]
 $ cat t3.py 
def foo(a):
    pass

foo(
    a=1,
    a=2
)

 $ ./python t3.py
  File "/home/isidentical/cpython/cpython/t3.py", line 4
    foo(
        ^
SyntaxError: keyword argument repeated: a

with the fix

 $ ./python t3.py
  File "/home/isidentical/cpython/cpython/t3.py", line 6
    a=2
    ^^^
SyntaxError: keyword argument repeated: a
History
Date User Action Args
2021-05-06 19:34:13BTaskayasetrecipients: + BTaskaya
2021-05-06 19:34:13BTaskayasetmessageid: <1620329653.84.0.738145818276.issue44063@roundup.psfhosted.org>
2021-05-06 19:34:13BTaskayalinkissue44063 messages
2021-05-06 19:34:13BTaskayacreate