This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients martin.panter, mdf, paul.moore, r.david.murray, steve.dower, tim.golden, zach.ware
Date 2015-10-13.04:40:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444711206.52.0.34532967708.issue25376@psf.upfronthosting.co.za>
In-reply-to
Content
I am no Windows expert, but I read in Issue 18597 that Ctrl+C is treated as EOF, except that a SIGINT is also sent in the background. This would explain why you see an EOFError. The partial traceback may also be from the same EOFError. Or both cases could be truncated reports of KeyboardInterrupt chained onto EOFError.

I understand the code path for input() may bypass the usual stdin.read() and readline() methods. Issue 18597 is about readline(), so it may not be an exact duplicate.

See also Issue 17619, which hints that KeyboardInterrupt handling for input() was worked on and fixed in 3.3. So why is it broken again in 3.4? A regression test would be nice, if at all possible. Does Windows have an equivalent of pseudo terminals?

Possibly also related is Issue 13673, about functions (like input) raising an exception (like EOFError), when SIGINT has been received. It mentions the interpreter completely failing to report the entire traceback, or truncating the traceback. It might be worth trying out the patch there. It might also be interesting to check sys.last_value in the interactive case.
History
Date User Action Args
2015-10-13 04:40:06martin.pantersetrecipients: + martin.panter, paul.moore, tim.golden, r.david.murray, zach.ware, steve.dower, mdf
2015-10-13 04:40:06martin.pantersetmessageid: <1444711206.52.0.34532967708.issue25376@psf.upfronthosting.co.za>
2015-10-13 04:40:06martin.panterlinkissue25376 messages
2015-10-13 04:40:05martin.pantercreate