[issue37065] File and lineno is not reported for syntax error in f-string

2019-05-27 Thread SilentGhost


Change by SilentGhost :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> problem with traceback for syntax error in f-string

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37065] File and lineno is not reported for syntax error in f-string

2019-05-27 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Related open issue : issue34364. Also issue29051 which was closed as duplicate 
of issue34364.

--
nosy: +xtreak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37065] File and lineno is not reported for syntax error in f-string

2019-05-27 Thread Eric V. Smith


Eric V. Smith  added the comment:

I'm pretty sure there's already an issue for this, but I don't have time to 
search for it now.

This is not an easy problem to solve. I've been working on it on and off for 
almost a year. I'll eventually get to it, but the changes are pretty invasive.

--
assignee:  -> eric.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37065] File and lineno is not reported for syntax error in f-string

2019-05-27 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +eric.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37065] File and lineno is not reported for syntax error in f-string

2019-05-27 Thread Denis S. Otkidach


New submission from Denis S. Otkidach :

Minimal example to reproduce:

-->8--
>>> with open('f_bug.py', 'w') as fp:
... fp.write('f"{a b}"')
... 
8
>>> import f_bug
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 1
(a b)
   ^
SyntaxError: invalid syntax
-->8--

Here we see in track trace "" and line number in erroneous expression 
in f-string, but no "f_bug.py" and line number in it.

--
components: Interpreter Core
messages: 343639
nosy: ods
priority: normal
severity: normal
status: open
title: File and lineno is not reported for syntax error in f-string
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com