Joshua Cannell added the comment:
Yeah, so this looks like a behavior in Windows in which an EOFError is raised
when a Ctrl + C is pressed, followed by a KeyboardInterrupt.
This post basically explains how to overcome it:
http://stackoverflow.com/questions/31127652/cannot-catch
Joshua Cannell added the comment:
I can post a script if necessary, but it looks like Zach has already done so. I
appreciate you verifying this.
--
___
Python tracker
<http://bugs.python.org/issue26
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
New submission from Joshua Cannell:
There seems to be an issue capturing keyboard interrupts on Windows 10 when
using raw_input() inside of a class method w/python 2.7.x.
So far I have tested this on:
2.7.11 x86 on Windows 10 x64 - Does not capture (Traceback)
2.7.11 x64 on Windows 10 x64