> On Dec 10, 2015, at 4:47 AM, Vincent Michel <[email protected]> wrote:
> 
> > Does setting PYTHONASYNCIODEBUG=1 complain about these mistakes? 
> 
> No it doesn't, unless the other loop is also running but that's only because 
> `asyncio.sleep` calls `future._loop.call_later` before yielding the future.
> `_check_thread` checks that `call_soon` and `call_at` are not called from a 
> different thread, but nothing prevents `Task._wakeup` to be scheduled in a 
> different loop that `Task._loop`. 
> 
> /Vincent

Here’s a PR to fix this: https://github.com/python/asyncio/pull/303

Thanks,
Yury

Reply via email to