[issue46237] Incorrect line reported in syntax error

2022-01-02 Thread arian-f
New submission from arian-f : parsing this code results in a syntax error with an incorrect line number - it's always 1 f''' { 1_a }''' resulting in: File "", line 1 ( 1_a ) ^ SyntaxError: invalid decimal literal an anal

[issue42209] Incorrect line reported in syntax error

2021-12-15 Thread arian-f
arian-f added the comment: There are still variations of this issue in python 3.10 - the line nr is correct - in script attached it's line 2 (the attached script is otherwise the same): f'{ 1_a }' resulting in: File "test.py", line 1 ( 1_a )