[Python-ideas] Briefer string format

Mike Miller python-ideas at mgmiller.net
Mon Jul 20 01:12:31 CEST 2015

Have long wished python could format strings easily like bash or perl do, ...
and then it hit me:

     csstext += f'{nl}{selector}{space}{{{nl}'

(This script included whitespace vars to provide a minification option.)

I've seen others make similar suggestions, but to my knowledge they didn't
include this pleasing brevity aspect.


More information about the Python-ideas mailing list