[issue25376] KeyboardInterrupt handling and traceback broken on Windows 10

Miikka Salminen report at bugs.python.org
Sun Oct 11 08:40:36 EDT 2015


Miikka Salminen added the comment:

Just tried the same in an IDLE session, but it seems to display the KeyboardInterrupt correctly:

Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> input("Question: ")
Question: 
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    input("Question: ")
  File "C:\y\Python\Python35\lib\idlelib\PyShell.py", line 1385, in readline
    line = self._line_buffer or self.shell.readline()
KeyboardInterrupt
>>> 

Running the file input_test.py I meantioned in my original report doesn't seem to diplay anything when Ctrl+C is pressed:

============= RESTART: C:\x\input_test.py =============
Question: 
>>>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25376>
_______________________________________


More information about the Python-bugs-list mailing list