A Welcome Syntax
A Welcome Syntax
Posted Apr 22, 2025 15:22 UTC (Tue) by kleptog (subscriber, #1183)In reply to: A Welcome Syntax by farnz
Parent article: Template strings accepted for Python 3.14
That doesn't make much sense. You can't implement await as a function, so making it look like a function call would be weird. Await is basically a another name for yield, and nobody is talking turning yield into a function call.
You're right that strictly speaking the await is optional. But I think they wanted to avoid a repeat of the "magic" where using yield in a function body magically turns it into a generator. The whole explicit over implicit and all that.
