Re: wrap the queue to multiprocess download

2011-09-08 Thread Chris Angelico
On Fri, Sep 9, 2011 at 12:12 AM, alias <[email protected]> wrote: >     def  __init__(self,arg): >     for  x  in  name: > >     s=webdata('quote') What you're doing here is iterating over the letters in the string 'quote'. It's adding one job for each letter. Is that your intention? ChrisA -

wrap the queue to multiprocess download

2011-09-08 Thread alias
here is my part of program,you can see main structure,i want to wrap it in class , class webdata(object): def __init__(self,arg): jobs = Queue.Queue() for x in name: jobs.put(self.url) def download(self): while not