Si votre email correspond à un compte, vous recevrez un lien de réinitialisation.
Hi all,Why import math block the thread (print is not continuous) ?When i remove "import math", the print continue infinitely.class SyncTopAppel(threading.Thread):def __init__(self):threading.Thread.__init__(self)self.running = Falsedef run(self):self.running = Truewhile self.running:print "before"import mathprint "after"time.sleep(1)def stop(self):self.running = FalseThanks
Hi all, Why import math block the thread (print is not continuous) ? When i remove "import math", the print continue infinitely. class SyncTopAppel(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.running = False def run(self): self.running = True while self.running: print "before" import math print "after" time.sleep(1) def stop(self): self.running = False Thanks