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 neonene
Recipients lys.nikolaou, neonene, pablogsal
Date 2021-01-20.22:51:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611183086.81.0.804124765933.issue42986@roundup.psfhosted.org>
In-reply-to
Content
On Windows, Python master crashes using f-string (which has an invalid char with braces) on line 3 and after.
It seems the issue is from commit (e5fe509054183bed9aef42c92da8407d339e8af8).

I tried

1) exec("f'{.}'")
2) exec("\nf'{.}'")
3) exec("\n\nf'{.}'")

commands and results are

1) expected
    >>> exec("f'{.}'")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "<string>", line 1
        (.)
         ^
    SyntaxError: f-string: invalid syntax

2) unexpected (caret indicates nothing)
    >>> exec("\nf'{.}'")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "<string>", line 2

        ^
    SyntaxError: f-string: invalid syntax

3) python crashes
    >>> exec("\n\nf'{.}'")
History
Date User Action Args
2021-01-20 22:51:26neonenesetrecipients: + neonene, lys.nikolaou, pablogsal
2021-01-20 22:51:26neonenesetmessageid: <1611183086.81.0.804124765933.issue42986@roundup.psfhosted.org>
2021-01-20 22:51:26neonenelinkissue42986 messages
2021-01-20 22:51:26neonenecreate