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