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 apsaras
Recipients apsaras
Date 2014-06-25.14:13:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403705585.66.0.458181854344.issue21870@psf.upfronthosting.co.za>
In-reply-to
Content
This infinite loop:

def f():
  a=b=0
  while 1:
    if a<b: pass

f()

doesn't respond to a Ctrl-C interrupt. If you modify the loop in various ways, like removing the function wrapper, then Ctrl-C works fine. It can be interrupted with Ctrl-\. This occurs if the program is run from a file or in the interactive interpreter.

Tested on Python 2.7.3 / Linux 3.2.0-64 x86_64, and Python 2.7.6 / Linux 3.13.0-27.

Reproducible: always
Expected behaviour: Ctrl-C interrupts program
Actual beviour: Ctrl-C prints ^C
History
Date User Action Args
2014-06-25 14:13:05apsarassetrecipients: + apsaras
2014-06-25 14:13:05apsarassetmessageid: <1403705585.66.0.458181854344.issue21870@psf.upfronthosting.co.za>
2014-06-25 14:13:05apsaraslinkissue21870 messages
2014-06-25 14:13:05apsarascreate