Re: question about multiprocessing

2010-06-26 Thread hywhy
if __name__ == '__main__': cm = CrawlerManager() cm.start() rc = cm.ResourceController() rc.say_hello() q = rc.get_queue() print q.get() -- View this message in context: http://old.nabble.com/question-about-multiprocessing-tp28940

Re: question about multiprocessing

2010-06-24 Thread News123
hywhy wrote: > thanks,friend! > I wanna use Queue to share objects,but on windows, the multiprocessing > module can‘t do this。 Is there any way to solve this problem! > thanks With multiprocessing.SyncManager you should be able to exchange Queues between different processes. -- http://mail.py

Re: question about multiprocessing

2010-06-24 Thread hywhy
thanks,friend! I wanna use Queue to share objects,but on windows, the multiprocessing module can‘t do this。 Is there any way to solve this problem! thanks -- View this message in context: http://old.nabble.com/question-about-multiprocessing-tp28940614p28982744.html Sent from the Python - python

Re: question about multiprocessing

2010-06-22 Thread Gabriel Genellina
En Sun, 20 Jun 2010 09:43:09 -0300, hywhy escribió: from multiprocessing.managers import BaseManager import Queue class CrawlerManager(BaseManager): pass downloader_queue = Queue.Queue() downloader_queue.put('hello') CrawlerManager.register('get_downloader_queue', callable=lambda: downlo

question about multiprocessing

2010-06-20 Thread hywhy
q.get() -- View this message in context: http://old.nabble.com/question-about-multiprocessing-tp28940614p28940614.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list