Hi
I have a program that downloads webpages. The webpages are stored in a list
and i make each has it's own thread that downloads it. Sometimes the threads
exit (because urlopen() throws an exception) Now the question is how can i
recover from this thread failing
Example Code
from urllib import urlopen
import threading
threaded_object = []
urls= [url1,url2....]
for i in urls:
do_thread = threading.Thread(target=urlopen,args=(url,))
threaded_object.append(do_thread)
for i in threaded_object:
i.start()
for i in threaded_object:
i.join()
Thanks
James
--
http://www.goldwatches.com/
http://www.jewelerslounge.com
--
http://mail.python.org/mailman/listinfo/python-list