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 Michiel.de.Hoon
Recipients Michiel.de.Hoon
Date 2015-01-14.02:13:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421201583.23.0.507661432161.issue23237@psf.upfronthosting.co.za>
In-reply-to
Content
This bug was previously reported in
http://bugs.python.org/issue3180
but was closed after seven years for being out of date.
Still, the bug remains: Interrupts are lost during readline PyOS_InputHook processing.

To reproduce the bug, try

>>> from Tkinter import *
>>> Tk()

You will notice that Ctrl-C now does not generate a KeybordInterrupt.

This bug appears in all Python versions I tested (Python 2.7, 3.3, 3.4) and, judging from the source code, is still present in the current Python source code in Mercurial. The bug appears both on Mac and on Linux; I do not have access to Windows.

The suggested patch at http://bugs.python.org/issue3180 makes multiple changes to the behavior of PyOS_InputHook. In particular, it allows for waiting for a file descriptor other than stdin. I think that this is unrelated to the current bug, so it should not be included in the patch, in particular since that would change the API.
History
Date User Action Args
2015-01-14 02:13:03Michiel.de.Hoonsetrecipients: + Michiel.de.Hoon
2015-01-14 02:13:03Michiel.de.Hoonsetmessageid: <1421201583.23.0.507661432161.issue23237@psf.upfronthosting.co.za>
2015-01-14 02:13:03Michiel.de.Hoonlinkissue23237 messages
2015-01-14 02:13:02Michiel.de.Hooncreate