This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ods
Recipients ods
Date 2019-05-27.15:11:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558969914.07.0.850758121851.issue37065@roundup.psfhosted.org>
In-reply-to
Content
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 "<stdin>", line 1, in <module>
  File "<fstring>", line 1
    (a b)
       ^
SyntaxError: invalid syntax
-->8--

Here we see in track trace "<fstring>" and line number in erroneous expression in f-string, but no "f_bug.py" and line number in it.
History
Date User Action Args
2019-05-27 15:11:54odssetrecipients: + ods
2019-05-27 15:11:54odssetmessageid: <1558969914.07.0.850758121851.issue37065@roundup.psfhosted.org>
2019-05-27 15:11:53odslinkissue37065 messages
2019-05-27 15:11:53odscreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.