]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41084: Adjust message when an f-string expression causes a SyntaxError (GH-21084)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Fri, 26 Jun 2020 11:24:05 +0000 (14:24 +0300)
committerGitHub <noreply@github.com>
Fri, 26 Jun 2020 11:24:05 +0000 (12:24 +0100)
commit2e0a920e9eb540654c0bb2298143b00637dc5961
tree25c0806ff15b04016ea802dfa84a042532e9e97f
parentef19bad7d6da99575d66c1f5dc8fd6ac57e92f6e
bpo-41084: Adjust message when an f-string expression causes a SyntaxError (GH-21084)

Prefix the error message with `fstring: `, when parsing an f-string expression throws a `SyntaxError`.
Lib/test/test_fstring.py
Misc/NEWS.d/next/Core and Builtins/2020-06-23-15-10-19.bpo-41084.pt3y7F.rst [new file with mode: 0644]
Parser/pegen.c