bpo-34075: Deprecate non-ThreadPoolExecutor in loop.set_default_executor() by elprans · Pull Request #8533 · python/cpython

Conversation

@elprans

Various asyncio internals expect that the default executor is a
ThreadPoolExecutor, so deprecate passing anything else to
loop.set_default_executor().

https://bugs.python.org/issue34075

…tor()

Various asyncio internals expect that the default executor is a
`ThreadPoolExecutor`, so deprecate passing anything else to
`loop.set_default_executor()`.

1st1

1st1 approved these changes Jul 28, 2018

@vstinner

I tested manually the test with python3 -W ignore and python3 -W error: the test pass a expected.