[issue14287] sys.stdin.readline and KeyboardInterrupt on windows

Musashi Tamura report at bugs.python.org
Tue Mar 13 15:07:05 CET 2012


New submission from Musashi Tamura <yuri.musashi.miwa.tamura at gmail.com>:

I run z.py and press Ctrl-C. 

''
Traceback (most recent call last):
  File "z.py", line 7, in <module>
    print(repr(x))
KeyboardInterrupt

I think '' should not be printed. This sometimes occurs on Python 3.2.2 and 2.7.2 AMD64 on Windows7, but doesn't occur on ubuntu.

----------
components: Windows
files: z.py
messages: 155612
nosy: miwa
priority: normal
severity: normal
status: open
title: sys.stdin.readline and KeyboardInterrupt on windows
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file24821/z.py

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


More information about the Python-bugs-list mailing list