Message367753
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. |
|
Date |
User |
Action |
Args |
2020-04-30 10:43:54 | Gerrit.Holl | set | recipients:
+ Gerrit.Holl |
2020-04-30 10:43:54 | Gerrit.Holl | set | messageid: <1588243434.48.0.11950945946.issue40449@roundup.psfhosted.org> |
2020-04-30 10:43:54 | Gerrit.Holl | link | issue40449 messages |
2020-04-30 10:43:54 | Gerrit.Holl | create | |
|