The Real Python Podcast cover image

Exploring Python With bpython & Formalizing f-String Grammar

The Real Python Podcast

00:00

Is There a PEP for F Strings?

PEP 701 is titled a syntactic formalization of F strings. The idea behind this new PEP seven one is to create a grammar for the F string format. This would allow the newer parsers that got introduced in Python three nine to do the parsing instead of CPython code right now. For example, at the moment, you can't put comments inside of an F string even if they're multi line ones and you can't nest expressions.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app