[Python-Dev] PEP 498: Literal String Interpolation is ready for pronouncement (original) (raw)
haypo s victor.stinner at gmail.com
Sat Sep 5 10:47:31 CEST 2015
- Previous message (by thread): [Python-Dev] PEP 498: Literal String Interpolation is ready for pronouncement
- Next message (by thread): [Python-Dev] PEP 498: Literal String Interpolation is ready for pronouncement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] PEP 498: Literal String Interpolation is ready for pronouncement
- Next message (by thread): [Python-Dev] PEP 498: Literal String Interpolation is ready for pronouncement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]