Eric V. Smith <> added the comment:

As you note, some of these likely cannot be improved.

There was talk last year about moving f-string's bespoke lexer/parser/compiler 
into the normal Python grammar. But I'm not sure if that ever got anywhere. If 
we did make that change, it would be easier to improve the error messages. 
Well, at least as easy as improving normal Python error messages.

nosy: +eric.smith
versions:  -Python 3.8

Python tracker <>
Python-bugs-list mailing list

Reply via email to