[issue34075] asyncio: We should prohibit setting a ProcessPoolExecutor in with set_default_executor
STINNER Victor
report at bugs.python.org
Wed Jul 11 10:34:44 EDT 2018
STINNER Victor <vstinner at redhat.com> added the comment:
> I think we'll only allow instances of c.f.ThreadPoolExecutor (and its subclasses) to be passed to set_default_executor. That's a more robust check than just guarding against ProcessPoolExecutor.
I suggest to only reject ProcessPoolExecutor, instead of having a very specific test on ThreadPoolExecutor which might fail with funky but valid thread executor.
----------
nosy: +vstinner
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34075>
_______________________________________
More information about the Python-bugs-list
mailing list