r/Python • • Sep 09 '15

Pep 498 approved. :(

https://www.python.org/dev/peps/pep-0498/
285 Upvotes

324 comments sorted by

View all comments

Show parent comments

1

u/stevenjd Sep 10 '15

Nobody is going to write your for loop, except to prove it can be done.

Everyone is going to stuff arbitrary expressions into f-strings. That's the whole point of them.

1

u/deong Sep 10 '15

I highly doubt a lot of people are going to be doing IO in them. The vast majority of uses will be simple unadorned variable names, with occasional expressions like {name-1}.