Ritesh Raj Sarraf wrote: [snip] > for item in list_items: > download_from_web(item) > > This way, one items is downloaded at a time. > > I'm planning to implement threads in my application so that multiple > items can be downloaded concurrently. I want the thread option to be > user-defined. [snip]
See my post about the iterthreader module I wrote... http://groups.google.com/group/comp.lang.python/browse_frm/thread/2ef29fae28cf44c1/ for url, result in Threader(download_from_web, list_items): print url, result #... -- - Justin -- http://mail.python.org/mailman/listinfo/python-list