On Mon, May 3, 2021 at 9:41 AM Steven D'Aprano <[email protected]> wrote:
> I agree with your general observation, but in the specific case of "do
> this to every element of this iterable", I think that's common enough
> that we should consider building it into the mini-languages used by
> format and f-strings.

Agreed. Python is quite good at bulk operations, and this is something
that definitely has value. I suspect it wouldn't fit into format(),
but it would be perfect in f-strings. There are other
string-formatting tools that allow a "do this for every element"
embed.

ChrisA
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/2IQ4H4XCERATUZKRVYYBEH6UYXGD6NRP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to