PDA

View Full Version : Exiting...


ChefNinja
07-30-2002, 10:47 AM
Is there a way to close/exit the program? :\

When I run something in the python shell, when it's done executing it just sits there, instead of closing/exiting :o Anyway I can exit?

GnuVince
07-30-2002, 11:31 AM
Yes:


import sys
sys.exit(0)

Bradmont
07-30-2002, 03:44 PM
or just press "ctrl+d" (ctrl+z on windows)

jemfinch
07-30-2002, 05:31 PM
or raise SystemExit.

Jeremy

inkedmn
07-30-2002, 05:43 PM
or just pull the power cord out of the back of the computer...

;)

ChefNinja
07-30-2002, 09:17 PM
or smash it with a hammer
or throw it out the window
or close this thread before it goes too far :o