Thanks Yury, that's exactly what I meant!

I tried it and it works as expected.

Le vendredi 11 décembre 2015 04:17:16 UTC+1, Guido van Rossum a écrit :
>
> Vincent, can you try with Yury's PR?
>
> On Thu, Dec 10, 2015 at 9:01 AM, Yury Selivanov <[email protected] 
> <javascript:>> wrote:
>
>>
>> > On Dec 10, 2015, at 4:47 AM, Vincent Michel <[email protected] 
>> <javascript:>> 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
>
>
>
>
> -- 
> --Guido van Rossum (python.org/~guido)
>

Reply via email to