Guido van Rossum added the comment:

No, `yield from` (or, in Python 3.5+, `await`) is not meant to bound back to 
the scheduler. If the target is a coroutine that itself doesn't yield, it is a 
*feature* that the scheduler is bypassed.

If you want to force a trip through the scheduler, use `asyncio.sleep(0)`.

----------
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29303>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to