komodo thread problem

ajikoe at gmail.com ajikoe at gmail.com
Fri Feb 4 12:27:51 EST 2005


Komodo problem with threading:

Hello,

I can't run this program:

def printtime(Max):
 i = 0
 while True:
   time.sleep(1)
   print time.ctime(time.time())
   i+=1
   if i==Max : break
 pass

if __name__ == "__main__":

 thread.start_new_thread(printtime,(2,))

But it runs inside IDLE.

pujo




More information about the Python-list mailing list