import threading def Thread(a): threading.Thread(target=a).start() class abc(object): def __init__(self): self.asd() @Thread def asd(self): print 'This is a thread function' abc()
<<< Traceback (most recent call last): <<< File "<string>", line 13, in <module> <<< File "<string>", line 9, in __init__ <<< TypeError: 'NoneType' object is not callable