Message 306840 - Python tracker
> Well, after all I am thinking maybe it is indeed makes sense to ban `yield` inside both sync/async and both comprehensions/generator expressions.
I agree, as I can't imagine a real use case for
a = ((yield a) for a in as)
which is really equivalent to
def a():
for a in as:
yield (yield a)