[issue28725] Awaiting an awaitable returned from an async function does nothing
Yury Selivanov
report at bugs.python.org
Thu Nov 17 12:02:49 EST 2016
Yury Selivanov added the comment:
This isn't a bug. Python doesn't magically unwind awaitables, you have to do that yourself:
async def two():
await (await one())
Broadly speaking, returning awaitables from coroutines is an anti-pattern.
Closing this one. Feel free to re-open or ask questions :)
----------
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28725>
_______________________________________
More information about the Python-bugs-list
mailing list