◐ Shell
clean mode source ↗

Message 306831 - Python tracker

> Remind me what happens when you use `await` in a generator expression that survives the async function's scope?

Awaiting on f([1, 2]) will result in an async generator (even though yield never appears here). Yury explained why this happens in https://bugs.python.org/issue32113