OSDir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] PEP 572 and f-strings


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).

Eric