[New-bugs-announce] [issue34364] problem with traceback for syntax error in f-string
bob gailer
report at bugs.python.org
Wed Aug 8 16:42:15 EDT 2018
New submission from bob gailer <bgailer at gmail.com>:
Inconsistent tracebacks. Note that the traceback for bug.py does not
reference the
module file and line number.
# bug.py
def f():
f'''
{d e}'''
a=b
import bug
Traceback (most recent call last):
File "<fstring>", line 1
(d e)
^
SyntaxError: invalid syntax
----------------------------------------
# bug2.py
def f():
f'''
{de}'''
a=b
import bug2
bug2.f()
Traceback (most recent call last):
File "C:\python\bug2.py", line 5, in <module>
a=b
NameError: name 'b' is not defined
----------
messages: 323301
nosy: bgailer
priority: normal
severity: normal
status: open
title: problem with traceback for syntax error in f-string
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34364>
_______________________________________
More information about the New-bugs-announce
mailing list