Message221550
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 |
|
Date |
User |
Action |
Args |
2014-06-25 14:13:05 | apsaras | set | recipients:
+ apsaras |
2014-06-25 14:13:05 | apsaras | set | messageid: <1403705585.66.0.458181854344.issue21870@psf.upfronthosting.co.za> |
2014-06-25 14:13:05 | apsaras | link | issue21870 messages |
2014-06-25 14:13:05 | apsaras | create | |
|