Passing a Pipe/Connection as context arg to multiprocessing Pool.apply_async()
问题 I want to use pipes to talk to the process instances in my pool, but I'm getting an error: Let __p be an instance of Pool(): (master_pipe, worker_pipe) = Pipe() self.__p.apply_async(_worker_task, (handler_info, context_info, worker_pipe)) When I execute this, I get the following error [for every instance, obviously]: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/queues.py", line 376, in get task = get() File "/System/Library/Frameworks/Python