C
Colin Brown
When I run this code and then immediately do a Control-C, I do not get the
'thread' printed?
Colin Brown
PyNZ
-----------------------------------------------------------
import thread, time
def x():
try:
time.sleep(60)
finally:
print 'thread'
thread.start_new_thread(x,())
time.sleep(60)
'thread' printed?
Colin Brown
PyNZ
-----------------------------------------------------------
import thread, time
def x():
try:
time.sleep(60)
finally:
print 'thread'
thread.start_new_thread(x,())
time.sleep(60)