[issue26531] KeyboardInterrupt while in input() not catchable on Windows 10

2016-03-11 Thread Joshua Cannell
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-keyboardinterru

[issue26531] KeyboardInterrupt while in input() not catchable on Windows 10

2016-03-10 Thread Martin Panter
Martin Panter added the comment: It sounds like you guys might be (re-)discovering existing bugs to do with KeyboardInterrupt in input on Windows: * Issue 18597 (Py 2 & 3): Strange exception handling reading stdin * Issue 10837 (2.7): KeyboardInterrupt deferred reading stdin * Issue 25376 (Py 3

[issue26531] KeyboardInterrupt while in input() not catchable on Windows 10

2016-03-10 Thread Joshua Cannell
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 ___ __

[issue26531] KeyboardInterrupt while in input() not catchable on Windows 10

2016-03-10 Thread Zachary Ware
Zachary Ware added the comment: I can reproduce on Windows 10 with Pythons 2.7.11, 3.4.4, and 3.5.1 with the attached script. Examples: E:\>ver Microsoft Windows [Version 10.0.10586] E:\>py ccbug.py 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] Traceback (m