[issue6407] multiprocessing Pool should allow custom task queue

2010-10-24 Thread Matthew Leon Grinshpun
Matthew Leon Grinshpun added the comment: I should be able to do this in November. For the moment I'm a bit busy. -- ___ Python tracker <http://bugs.python.org/i

[issue6407] multiprocessing Pool should allow custom task queue

2009-07-03 Thread Matthew Leon Grinshpun
Matthew Leon Grinshpun added the comment: I have attached a patch. All I did was shift the one line from __init__ to _setup_queues. That's it. You could take advantage of the change in the following way: class BlockingPool(pool.Pool): def _setup_queues(self): pool

[issue6407] multiprocessing Pool should allow custom task queue

2009-07-03 Thread Matthew Leon Grinshpun
New submission from Matthew Leon Grinshpun : Multiprocessing's Pool class __init__ method is written in a way that makes it very difficult for a subclass to modify self._taskqueue. There are very good reasons for wanting to do this - ie, making the taskqueue block when it reaches a certain