Is there a shorter way to write
for x in [x for x in X if a(x)]:
<Do something complicated with x>
Unfortunately, the following does not work:
for x in X if a(x):
<Do something complicated with x>
Of course, I could achieve the desired result by
for x in X:
if a(x):
<Do something complicated with x>
but this would introduce an extra level of indentation