[Python-ideas] Briefer string format
Sam O'Malley
omalsa04 at gmail.com
Mon Jul 20 02:00:41 CEST 2015
What about:
csstext += '{nl}{key}{space}{nl}'.format()
Format called with no arguments could default to reading from the locals
dict.
On Mon, 20 Jul 2015 at 9:22 am Terry Reedy <tjreedy at udel.edu> wrote:
> On 7/19/2015 7:12 PM, Mike Miller wrote:
> > Have long wished python could format strings easily like bash or perl
> > do, ...
> > and then it hit me:
> >
> > csstext += f'{nl}{selector}{space}{{{nl}'
>
> Are the unbalanced braces here and in the followup intentional?
>
>
> --
> Terry Jan Reedy
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150720/7fc48664/attachment-0001.html>
More information about the Python-ideas
mailing list