[issue42209] Incorrect line reported in syntax error

arian-f report at bugs.python.org
Wed Dec 15 04:47:05 EST 2021


arian-f <arian.sanusi at flisom.com> 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 )
       ^
SyntaxError: invalid decimal literal

or is this a different but similar bug? Can this bug be reopened or should I file a new bug?

> python -VV
Python 3.10.1 (tags/v3.10.1:2cd268a, Dec  6 2021, 19:10:37) [MSC v.1929 64 bit (AMD64)]

----------
nosy: +arian-f
versions: +Python 3.10 -Python 3.8
Added file: https://bugs.python.org/file50491/test.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42209>
_______________________________________


More information about the Python-bugs-list mailing list