On Mon, May 3, 2021 at 9:41 AM Steven D'Aprano firstname.lastname@example.org 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.