Andreas van Cranenburgh added the comment:

Here's a patch. I have added initializer and initargs keywords to both 
ThreadPoolExecutor and ProcessPoolExecutor, with the same semantics as 
multiprocessing.Pool.

I couldn't figure out what to do if the initializer fails with a 
ProcessPoolExecutor: how to properly send the traceback back? I also haven't 
gotten around to figure out how to write tests.
I haven't added unitializers, don't know if they would be useful.

----------
keywords: +patch
Added file: http://bugs.python.org/file35179/pool_initializer.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21423>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to