]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34075: Deprecate non-ThreadPoolExecutor in loop.set_default_executor() (GH-8533)
authorElvis Pranskevichus <elvis@magic.io>
Mon, 30 Jul 2018 10:42:43 +0000 (11:42 +0100)
committerVictor Stinner <vstinner@redhat.com>
Mon, 30 Jul 2018 10:42:43 +0000 (12:42 +0200)
commit22d25085db2590932b3664ca32ab82c08f2eb2db
treed173242dc2c035baf83bf36eb26d992618c1e796
parent4e11c461ed39085b8495a35c9367b46d8a0d306d
bpo-34075: Deprecate non-ThreadPoolExecutor in loop.set_default_executor() (GH-8533)

Various asyncio internals expect that the default executor is a
`ThreadPoolExecutor`, so deprecate passing anything else to
`loop.set_default_executor()`.
Doc/library/asyncio-eventloop.rst
Doc/whatsnew/3.8.rst
Lib/asyncio/base_events.py
Lib/test/test_asyncio/test_base_events.py
Misc/NEWS.d/next/Library/2018-07-28-11-49-21.bpo-34075.9u1bO-.rst [new file with mode: 0644]