[Python-Dev] Parsing f-strings from PEP 498 -- Literal String Interpolation (original) (raw)

Simon Cross hodgestar+pythondev at gmail.com
Fri Nov 4 04:36:06 EDT 2016


On Fri, Nov 4, 2016 at 9:56 AM, Eric V. Smith <eric at trueblade.com> wrote:

2. The parser sees that it's an f-string, and breaks it into expression and text parts.

I'm with Fabio here. It would be really nice to have a grammar specified and documented for this step, even if it's not implemented that way. Otherwise it's going to be very hard for, e.g., syntax highlighters to know what is intended to be allowed.



More information about the Python-Dev mailing list