[New-bugs-announce] [issue18597] On Windows sys.stdin.readline() doesn't handle Ctrl-C properly
Drekin
report at bugs.python.org
Tue Jul 30 11:13:12 CEST 2013
New submission from Drekin:
When I run sys.stdin.readline() interactivelly (on Windows and Python 3.3.2) and hit Ctrl-C, sometimes it returns an empty string just before KeyboardInterrupt is raised. Sometimes it isn't even raised and instead after hitting Return some weird SyntaxtError: unknown decode error (on line 0) occurs. Seems like propagation of KeyboardInterrupt is somehow out of sync. sys.stdin.read(n) has the same issue. May be related to recently fixed http://bugs.python.org/issue17619 where was similar situation with input().
----------
components: Windows
messages: 193918
nosy: Drekin
priority: normal
severity: normal
status: open
title: On Windows sys.stdin.readline() doesn't handle Ctrl-C properly
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18597>
_______________________________________
More information about the New-bugs-announce
mailing list