New submission from Andrew Svetlov <andrew.svet...@gmail.com>:

The current documentation says: "If there is no current event loop set in the 
current OS thread and set_event_loop() has not yet been called, asyncio will 
create a new event loop and set it as the current one."

https://docs.python.org/3.7/library/asyncio-eventloop.html#asyncio.get_event_loop

This is not correct, a new loop is created implicitly only for the main thread, 
all other threads require set_event_loop() call

----------
components: asyncio
messages: 360244
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Fix get_event_loop documentation
versions: Python 3.7, Python 3.8, Python 3.9

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

Reply via email to