multiprocessing and __main__

2009-07-25 Thread is un
Hi, Trying the multiprocessing module for the first time, I spent quite a bit on making this code run: from multiprocessing import Process import time def my_process(): i = 0 while 1: print i i += 1 time.sleep(0.5) p = Process(target=my_process, args=()) p.start

Re: multiprocessing and __main__

2009-07-25 Thread is un
Me again, fix a type in my question: So my question is what actually happens when I call p.start()? Is the *entire* file reloaded under a different module name? > > Thanks > iu2 -- http://mail.python.org/mailman/listinfo/python-list