[Tutor] Stopping A Program

Thomi Richards thomi@thomi.imail.net.nz
Tue, 15 Oct 2002 21:59:24 +1300


ummmmm CTRL+ALT+DELETE??

yeah, i know it's ugly, but then again, isn't windows?


On Tue, 15 Oct 2002 09:44:09 +0100 Thus said James.Rocks@equant.com:

> Hi Alan,
> 
> > raise SystemExit
> > or
> > import sys
> > sys.exit()
> > The latter gives the option of returning an error code to
> > the external environment:
> > sys.exit(2)
> > Note that these will all be caught by IDLE but when running
> > the program as a standalone script will exit back to the OS.
> > BTW This is covered in the very first hands-on topic in my
> > online tutor... :-)
> 
> I think you misunderstood (or my expression was bad) ... I mean when a
> long program is running how do you terminate it. In windows at least I
> cannot access the immediate window so how do I force a running program
> to stop if there is no code to stop it or it gets stuck in a loop that
> I hadn't intended?
> 
> James
> 
> James C. Rocks
> Equant
> Archway House
> Canary Wharf
> London E14 9SZ
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor


-- 
Thomi Richards
thomi@imail.net.nz
http://thomi.imail.net.nz/
Thomi Richards,
thomi@imail.net.nz