[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

[Python-ideas] Briefer string format

The Wayback Machine - https://web.archive.org/web/20200622045933/https://mail.python.org/pipermail/python-ideas/2015-July/034657.html

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.

-Mike



More information about the Python-ideas mailing list