You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2021-05-07.20:40:57.096>created_at=<Date2021-05-06.19:34:13.826>labels= []
title='compiler: does not revert back the end_* locations'updated_at=<Date2021-05-07.20:40:57.096>user='https://github.com/isidentical'
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.oParser/token.oParser/pegen.oParser/parser.oParser/string_parser.oParser/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
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: