Hi,
why is KeyboardInterru pt not caught (xp)?
import sys
try:
inp = sys.stdin.read( )
except (KeyboardInterr upt, SystemExit):
print "kbd-interr,SystemEx it"
except EOFError:
print "eof encountered"
except:
print "caught all"
self.showtraceb ack()
print "normal end"
result after script startet and ^C hit:
normal end
Traceback (most recent call last):
File "C:\work\py_src \ctrl_test.py", line 11, in ?
print "normal end"
KeyboardInterru pt
br Rudi
why is KeyboardInterru pt not caught (xp)?
import sys
try:
inp = sys.stdin.read( )
except (KeyboardInterr upt, SystemExit):
print "kbd-interr,SystemEx it"
except EOFError:
print "eof encountered"
except:
print "caught all"
self.showtraceb ack()
print "normal end"
result after script startet and ^C hit:
>ctrl_test.py
Traceback (most recent call last):
File "C:\work\py_src \ctrl_test.py", line 11, in ?
print "normal end"
KeyboardInterru pt
br Rudi
Comment