from threading import Thread
import time
class MyThread(Thread):
def __init__(self):
Thread.__init__(self)
def run(self):
while True:
print("Forever")
time.sleep(10)
return
yield from None
if __name__ == '__main__': mt = MyThread()
mt.start()
mt.join()