A Welcome Syntax
A Welcome Syntax
Posted Apr 24, 2025 11:13 UTC (Thu) by mb (subscriber, #50428)In reply to: A Welcome Syntax by farnz
Parent article: Template strings accepted for Python 3.14
I really don't understand what the problem is that you are talking about.
If you want parenthesis after await, then just add them. You can do that today.
$ cat t.py
import asyncio
async def x():
print('A')
await asyncio.sleep(1)
print('B')
await(asyncio.sleep(1))
print('C')
asyncio.run(x())
$ python3 t.py
A
B
C
