threading problem..

Diez B. Roggisch deets at nospam.web.de
Thu Oct 25 17:41:41 EDT 2007


Abandoned schrieb:
> Hi..
> I want to threading but i have a interesting error..
> ==========
> class SelectAll(threading.Thread):
>    def __init__(self, name):
>       threading.Thread.__init__(self)
>       self.name = name #kelime
> 
>    def run(self):
>     ....
>     ....
>     self.result=...
> nglist=[]
> current = SelectAll(name)
> nglist.append(current)
> current.start()
>  for aaa in nglist:
>       aaa.join()
> 
> =============
> 
> and it gives me this error:
>     aaa.join()
> 
> AttributeError: 'dict' object has no attribute 'join'
> 
> 
> What is the problem i can't understand this error :(

that you have an attribute join on you SelectAll-objects that shadows 
the Thread.join

Diez




More information about the Python-list mailing list