Message368398
> Hm, but there the old parser seems at fault: it points to the last space rather than beyond it?
Both parsers seem to have the same behaviour, when parsing files. I just found out that even the new parser points to the `|` if there is not trailing whitespace:
╰─ cat -e t.py
x = 1 | 2 |$
╰─ ./python.exe t.py
File "/Users/lysnikolaou/Repositories/cpython/t.py", line 1
x = 1 | 2 |
^
SyntaxError: invalid syntax
╰─ ./python.exe -X oldparser t.py
File "/Users/lysnikolaou/Repositories/cpython/t.py", line 1
x = 1 | 2 |
^
SyntaxError: invalid syntax
I'll investigate more tomorrow. |
|
Date |
User |
Action |
Args |
2020-05-08 00:56:28 | lys.nikolaou | set | recipients:
+ lys.nikolaou, gvanrossum, pablogsal, BTaskaya |
2020-05-08 00:56:28 | lys.nikolaou | set | messageid: <1588899388.95.0.62296080683.issue40546@roundup.psfhosted.org> |
2020-05-08 00:56:28 | lys.nikolaou | link | issue40546 messages |
2020-05-08 00:56:28 | lys.nikolaou | create | |
|