A Welcome Syntax
A Welcome Syntax
Posted Apr 23, 2025 12:24 UTC (Wed) by kleptog (subscriber, #1183)In reply to: A Welcome Syntax by farnz
Parent article: Template strings accepted for Python 3.14
In that case I wonder why they're even using async/await at all? It's not exactly a trivial feature. Is there some company library that requires its use?
I'm also struggling to think of a situation where it's unclear where to put the await. It's almost always applied to a function call and I don't see the benefit of writing:
res = await(func(foo, ...))
over
res = await func(foo, ...)
Just seems like excessive parentheses. If you're calling an async function, stick the await right before the function name. That's all that's required. I can't believe that's hard to remember if you know the rest of Python. If you're using something like VSCode it will show you where you went wrong.
