Message345717
And like the `concurrent.futures` module for `concurrent.futures.ProcessPoolExecutor` but not for `concurrent.futures.ThreadPoolExecutor` (see above), the `multiprocessing.pool` module seems also affected by a similar problem for `multiprocessing.pool.Pool` (process pools) but not for `multiprocessing.pool.ThreadPool` (thread pools).
Indeed the following code:
import multiprocessing.pool
class A:
def f(self):
print("called")
class B(A):
def f(self):
pool = multiprocessing.pool.Pool(2)
pool.apply(super().f)
if __name__ == "__main__":
B().f()
raises the following exception:
> AssertionError: daemonic processes are not allowed to have children |
|
Date |
User |
Action |
Args |
2019-06-15 22:21:15 | maggyero | set | recipients:
+ maggyero, bquinlan, pitrou, ned.deily, asvetlov, methane, lukasz.langa, serhiy.storchaka |
2019-06-15 22:21:15 | maggyero | set | messageid: <1560637275.58.0.89059030021.issue37294@roundup.psfhosted.org> |
2019-06-15 22:21:15 | maggyero | link | issue37294 messages |
2019-06-15 22:21:15 | maggyero | create | |
|