Message393138
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 |
|
Date |
User |
Action |
Args |
2021-05-06 19:34:13 | BTaskaya | set | recipients:
+ BTaskaya |
2021-05-06 19:34:13 | BTaskaya | set | messageid: <1620329653.84.0.738145818276.issue44063@roundup.psfhosted.org> |
2021-05-06 19:34:13 | BTaskaya | link | issue44063 messages |
2021-05-06 19:34:13 | BTaskaya | create | |
|