Re: [spe-users] Three Newbie Issues
"SPE Stani's Python Editor" <[email protected]> Tue, 2 May 2006 22:28:21 +0200
| Newsgroups | gmane.comp.python.spe.user |
|---|---|
| Message-ID | <[email protected]> |
http://pythonide.stani.be http://pythonide.stani.be/manual/html/manual.html http://pythonide.stani.be/blog/sm_donate -- On 5/1/06, Henning Hraban Ramm <[email protected]> wrote: > http://pythonide.stani.be > http://pythonide.stani.be/manual/html/manual.html > http://pythonide.stani.be/blog/sm_donate > -- > > > Am 2006-05-01 um 11:50 schrieb Todd O'Bryan: > > >> Doing Ctrl+Shift+E runs the file. But I strongly advice [against] > >> letting > >> students use this, as if they define an infinite loop, SPE will > >> block. > > I'm a little unsure about your last point, though. First, I'm > > assuming you advise NOT to let students do this. Does running the > > file in the shell work differently than running it with the Run > > command? In other words, does an infinite loop only run infinitely > > in the shell? > > If you must kill a loop (i.e. the process), you must kill SPE (and > perhaps loose changes in other open files) if you run from SPE (in > the same process). Thanks Henning! To repeat: if you run a program with an infinite loop with Ctrl+R (or toolbar button) you can kill it by pressing Ctrl+R again. If you load an infinite loop in the shell there is no way to kill the program.Therefore all programs should be run with Ctrl+R and only small, safe code snippets should run in the shell as they block SPE during execution.That's why students should use Ctrl+R. > Otherwise you can kill the shell and leave SPE running. This is confusing, you can not kill the shell. You can kill scripts running with Ctrl+R Stani -- http://pythonide.stani.be http://pythonide.stani.be/screenshots http://pythonide.stani.be/manual/html/manual.html