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 <rep...@bugs.python.org>
<http://bugs.python.org/issue28725>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to