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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18597>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to