python - Calling a superclass function for a class with multiple superclass -
i have class extends 2 classes, 1 of them including threading.thread. how call start method of threading.thread subclass?
class poller(threading.thread, <some other class>): """ poller code """ def start(): return super(poller,self).start()
i want start thread class' start function. not going work right?
if want sure call thread's start can do:
def start(self): threading.thread.start(self)
note avoid other base class's start method , may not want
Comments
Post a Comment