O
Operation Latte Thunder
I have a simple test proggie that isn't behaving like I expect ( found
below ). The script will infinitely run ( as expected ), but seems to
completely ignore control-C's. Shouldn't the interpreter pass along
KeyboardInterrupts and break out of the while loop, or am I missing
something?
Using python 2.4.2 on linux ( if it matters )
-- Script Below --
import threading, traceback, time
class TestThread ( threading.Thread ):
def __init__ ( self ):
threading.Thread.__init__ ( self )
def run ( self ):
print "Starting..."
while True:
time.sleep ( 1 )
return
if __name__ == '__main__':
test = TestThread ( )
test.start()
print "Started..."
test.join()
below ). The script will infinitely run ( as expected ), but seems to
completely ignore control-C's. Shouldn't the interpreter pass along
KeyboardInterrupts and break out of the while loop, or am I missing
something?
Using python 2.4.2 on linux ( if it matters )
-- Script Below --
import threading, traceback, time
class TestThread ( threading.Thread ):
def __init__ ( self ):
threading.Thread.__init__ ( self )
def run ( self ):
print "Starting..."
while True:
time.sleep ( 1 )
return
if __name__ == '__main__':
test = TestThread ( )
test.start()
print "Started..."
test.join()