News for hackers. Stuff that matters.
Re:No-op statements syntactically valid only since Python X.Y by anderskaseorg on Monday June 06, 2022 @03:08PM (#31644529)
async/await was actually added in 3.5 (although the @ test in since-3.5.py is shorter). The specific change used by since-3.7.py is that await is now allowed inside an f-string (inside an async function). The specific change used by since-3.11.py is that an async comprehension is now allowed inside a normal comprehension (inside an async function). These changes are, of course, not new primitives—just fixes to allow existing primitives to be combined in ways that should intuitively work.

There are no comments on this comment yet.