[issue38423] Event loop implementation docs advertise set_event_loop which doesn't work with asyncio.run

2020-01-27 Thread Cilyan Olowen


Cilyan Olowen  added the comment:

It doesn't seem to work either for asyncio.get_event_loop, especially when 
using asyncio.wait(), the loop complains that 

"RuntimeError: Task  cb=[_wait.._on_completion() at 
lib\asyncio\tasks.py:440]> got Future  attached to a different 
loop"

------
nosy: +Cilyan Olowen

___
Python tracker 
<https://bugs.python.org/issue38423>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38423] Event loop implementation docs advertise set_event_loop which doesn't work with asyncio.run

2020-01-27 Thread Cilyan Olowen


Cilyan Olowen  added the comment:

My bad, I did not check that asyncio.Event() was called before the application 
has a chance to properly set_event_loop with custom one.

--

___
Python tracker 
<https://bugs.python.org/issue38423>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com