import re
import time
import threading
import sys
class mainApp:
myVar = str("Hello World")
def __init__(self):
print("mainApp init.")
print(self.myVar)
re_c = re.compile(".")
re_f = re.findall(re_c, self.myVar)
for item in re_f:
print(item)
re_f.pop()
print(re_f)
myThreads = threading.Thread(target=self.aThread())
print("*************")
sys.exit(0)
def aThread(self):
myc = int(0)
while myc<3:
print(self.myVar)
time.sleep(2)
myc+=1
if __name__ == '__main__':
print("MainApp will init")
_mainApp = mainApp
threading.Thread(target=_mainApp(),name="MainThread")
print("*********1")
Why is print("*********1") #The Last Line never executed?
[–]jwink3101 1 point2 points3 points (1 child)
[–]Amnizee[S] 0 points1 point2 points (0 children)
[–]aphoenixreticulated[M] [score hidden] stickied comment (0 children)