[issue34014] loop.run_in_executor should propagate current contextvars

Yury Selivanov report at bugs.python.org
Sat Jun 30 19:56:26 EDT 2018


Yury Selivanov <yselivanov at gmail.com> added the comment:

I considered enabling that, but in the end decided not to. The reason is that it's possible to use a ProcessPoolExecutor with run_in_execuror(), and context cars currently don't support pickling (and probably never will). We can't have a single api that sometimes works with contextvars and sometimes doesn't.

So this is a "won't fix".

----------

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


More information about the Python-bugs-list mailing list