Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Pressing stop in Eclipse outright kills the interpreter (though it actually fails fairly often). Like using <code>kill</code>/<code>taskkill</code>, the process is unaware of it's demise.</p> <p><a href="http://en.wikipedia.org/wiki/Control-C" rel="nofollow noreferrer">Ctrl+C</a> snippet from Wikipedia...</p> <blockquote> <p>Control-C as an abort command was popularized by UNIX and adopted in other systems. In POSIX systems, the sequence causes the active program to receive a SIGINT signal. If the program does not specify how to handle this condition, it is terminated. Typically a program which does handle a SIGINT will still terminate itself, or at least terminate the task running inside it.</p> </blockquote> <p><code>Ctrl+C</code> is a control signal to interrupt the program, but as you may have noticed in the middle of that paragraph, programs can specify how to handle the signal. In Python, Ctrl+C <a href="http://effbot.org/zone/stupid-exceptions-keyboardinterrupt.htm" rel="nofollow noreferrer">throws a KeyboardInterrupt exception</a> which is normally caught and then Python exits cleanly. Even if you're killing the interpreter with <code>Ctrl+C</code> it may handle it so that it cleans the environment before exiting.</p> <p>I included the following because you asked "Is there a way around it?"</p> <p>If you are wanting to stop on <code>raw_input(...)</code> calls, you could use <code>Ctrl+Z</code> to send EOF. I looked around, and there seems to be no way to send <code>Ctrl+C</code>/<code>0x03</code> in Eclipse, unfortunately.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload