I'm trying to pass arguments to my the run method of my class that
inherits from threading.Threa d.
class Reader(threadin g.Thread):
def __init__(self, conn):
threading.Threa d.__init__(self , None, None, None, (conn))
def run(self,conn):
while 1:
data = conn.recv(1024)
print data
inherits from threading.Threa d.
class Reader(threadin g.Thread):
def __init__(self, conn):
threading.Threa d.__init__(self , None, None, None, (conn))
def run(self,conn):
while 1:
data = conn.recv(1024)
print data
Comment