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 Gerrit.Holl
Recipients Gerrit.Holl
Date 2020-04-30.10:43:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588243434.48.0.11950945946.issue40449@roundup.psfhosted.org>
In-reply-to
Content
When there is a syntax error in a multi-line f-string, the arrow in the reported syntax error points to the wrong line:

$ cat mwe.py 
s = ("apricot "
     "pineapple"
     f"shallot{")
$ python mwe.py 
  File "mwe.py", line 1
    s = ("apricot "
        ^
SyntaxError: f-string: expecting '}'

Tested with Python 3.7.4 and 3.8.2.
History
Date User Action Args
2020-04-30 10:43:54Gerrit.Hollsetrecipients: + Gerrit.Holl
2020-04-30 10:43:54Gerrit.Hollsetmessageid: <1588243434.48.0.11950945946.issue40449@roundup.psfhosted.org>
2020-04-30 10:43:54Gerrit.Holllinkissue40449 messages
2020-04-30 10:43:54Gerrit.Hollcreate