[Python-ideas] Briefer string format

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Jul 24 01:40:49 CEST 2015

Steven D'Aprano wrote:

> I don't think I want this behaviour:
>     f'{spam}' '{eggs}'
>     => format(spam) + '{eggs}'

What do you think should happen in this case:

    '{spam}' f'{eggs}'

It would seem very strange to me if the f infected
strings *before* it as well as after it.


More information about the Python-ideas mailing list