]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39529: Deprecate creating new event loop in asyncio.get_event_loop() (GH-23554)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 25 Apr 2021 10:40:44 +0000 (13:40 +0300)
committerGitHub <noreply@github.com>
Sun, 25 Apr 2021 10:40:44 +0000 (13:40 +0300)
commit172c0f2752d8708b6dda7b42e6c5a3519420a4e8
tree35a076c6baad7ca053a62b9f505af3762a867b79
parentface87c94e67ad9c72b9a3724f112fd76c1002b9
bpo-39529: Deprecate creating new event loop in asyncio.get_event_loop() (GH-23554)

asyncio.get_event_loop() emits now a deprecation warning when it creates a new event loop.
In future releases it will became an alias of asyncio.get_running_loop().
16 files changed:
Doc/library/asyncio-eventloop.rst
Doc/library/asyncio-future.rst
Doc/library/asyncio-task.rst
Doc/whatsnew/3.10.rst
Lib/asyncio/events.py
Lib/asyncio/futures.py
Lib/asyncio/streams.py
Lib/asyncio/tasks.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_futures.py
Lib/test/test_asyncio/test_queues.py
Lib/test/test_asyncio/test_streams.py
Lib/test/test_asyncio/test_tasks.py
Misc/NEWS.d/next/Library/2020-12-06-20-21-16.bpo-39529.9Zrg43.rst [new file with mode: 0644]
Modules/_asynciomodule.c
Modules/clinic/_asynciomodule.c.h