threading problem..

A

Abandoned

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 :(
 
D

Diez B. Roggisch

Abandoned said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top