[Python-Dev] PEP 572 and f-strings

Eric V. Smith eric at trueblade.com
Sat May 12 07:11:16 EDT 2018

I don't think it matters to its acceptance, but PEP 572 should at least 
mention that the := syntax means that you cannot use assignment 
expressions in f-strings.

As I wrote in a python-ideas email, f'{x:=4}' already has a defined 
meaning (even if no one is using it).


More information about the Python-Dev mailing list