[New-bugs-announce] [issue46237] Incorrect line reported in syntax error
arian-f
report at bugs.python.org
Mon Jan 3 02:45:13 EST 2022
New submission from arian-f <arian.sanusi at flisom.com>:
parsing this code results in a syntax error with an incorrect line number - it's always 1
f'''
{ 1_a }'''
resulting in:
File "<stdin>", line 1
( 1_a )
^
SyntaxError: invalid decimal literal
an analogue error occurs when parsing a file instead of stdin.
This bug looks like it's another instance of https://bugs.python.org/issue42209 - I commented there but there was no response for two weeks - I hope it's OK to post 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)]
----------
messages: 409567
nosy: arian-f
priority: normal
severity: normal
status: open
title: Incorrect line reported in syntax error
type: behavior
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46237>
_______________________________________
More information about the New-bugs-announce
mailing list