[Python-Dev] PEP 498: Literal String Interpolation is ready for pronouncement
haypo s
victor.stinner at gmail.com
Sat Sep 5 10:47:31 CEST 2015
2015-09-05 10:44 GMT+02:00 haypo s <victor.stinner at gmail.com>:
> PEP 498 allows to write >'abc' f'string'< which is replaced with
>>'abc' 'string'.__format__()< whereas str+str is a bad practice.
Oops, you should read which is replaced with >'abc' +
'string'.__format__()< with a '+' between the two strings.
Victor
More information about the Python-Dev
mailing list