2 May
2021
2 May
'21
11:57 p.m.
On Mon, May 3, 2021 at 9:41 AM Steven D'Aprano
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