I recently started with python\'s threading module. After some trial and error I managed to get basic threading working using the following sample code given in most tutoria
You can pass class instance to the thread:
class SomeThread(threading.Thread): def __init__(self, count, instance): threading.Thread.__init__(self) self.instance = instance def run(self): print "Do something" self.instance.some_param = data self.instance.some_function()