Why doesn\'t code like the following catch CTRL-C?
MAXVAL = 10000 STEP_INTERVAL = 10 for i in range(1, MAXVAL, STEP_INTERVAL): try: print str(i)
Sounds like the program is done by the time control-c has been hit, but your operating system hasn't finished showing you all the output. .