About object reference and threads
Grumfish
nobody at nowhere.com
Mon Jan 27 14:21:38 EST 2003
More information about the Python-list mailing list
Mon Jan 27 14:21:38 EST 2003
- Previous message (by thread): Tkinter + Unicode -- possible FIX
- Next message (by thread): About object reference and threads
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Laura Creighton wrote: > and a Thread (made like this) > > self.thread1 = threading.Thread(target=self.workerThread1) The thread shares the same members as self when using target like that? I wanted a subclass of Thread with its own run method. Doing it like the example said would mean the self.queue would refer to the parent's queue member. Doing it the way I wanted, self.queue would refer to the thread's queue. Am I correct? Is one way better than the other? I tried what Peter said and it seems to work but I can't realy test it without finishing another part of the program. Thank you.
- Previous message (by thread): Tkinter + Unicode -- possible FIX
- Next message (by thread): About object reference and threads
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list