passing argumetns to threading.Thread
sashan
mabus at operamail.com
Sat Oct 4 22:34:27 EDT 2003
More information about the Python-list mailing list
Sat Oct 4 22:34:27 EDT 2003
- Previous message (by thread): passing argumetns to threading.Thread
- Next message (by thread): Python syntax in Lisp and Scheme (fwd)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> You can, however, use instance variables since Reader is an object: > > class Reader(threading.Thread): > def __init__(self, conn): > threading.Thread.__init__(self) # no need for extra args > self.conn = conn > > def run(self): > while 1: > data = self.conn.recv(1024) > print data > > -Peter Thanks
- Previous message (by thread): passing argumetns to threading.Thread
- Next message (by thread): Python syntax in Lisp and Scheme (fwd)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list