[issue34075] asyncio: We should prohibit setting a ProcessPoolExecutor in with set_default_executor

STINNER Victor report at bugs.python.org
Wed Jul 11 11:08:56 EDT 2018


STINNER Victor <vstinner at redhat.com> added the comment:

> Other than subclasses of thread executor, what are you going to pass in?

I don't see why asyncio should prevent people to experiment their own custom executor. You can imagine a custom "green executor" which inherit from Executor but uses its own black magic like greenlet. People like to do crazy things to implement asynchronous programming :-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34075>
_______________________________________


More information about the Python-bugs-list mailing list