[New-bugs-announce] [issue39381] Fix get_event_loop documentation
Andrew Svetlov
report at bugs.python.org
Sat Jan 18 08:30:41 EST 2020
New submission from Andrew Svetlov <andrew.svetlov at 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 <report at bugs.python.org>
<https://bugs.python.org/issue39381>
_______________________________________
More information about the New-bugs-announce
mailing list