Joshua Cannell added the comment:
Hi,
Thanks for the quick response.
I tried your code, it doesn't capture the keyboard interrupt, so the method
doesn't seem to be needed. Also, the code doesn't carry on if interrupt was
received, but instead produces the stack traceback. For example:
while True:
try:
data = raw_input()
print data
except KeyboardInterrupt:
print "Interrupt!"
Does not print "data" if a KeyboardInterrupt is received during raw_input.
Unfortunately, I can't use python 3 as my organization currently uses 2 in
their production environment.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue26531>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com