I hope this isn't too noobish, nothing on the list comes up in Google, but I'm curious why the construct
for x in y if x.is_some_thing:
# do a thing
isn't legal. That seems a very Pythonic symmetry with lambdas. The equivalent syntax required right now is,
for x in [x for x in y if x.is_some_thing]:
# do a thing
Of course there's more flexibility in the full syntax, but is there any interest in the simpler, more performant one-line syntax?
Em