how to stop python...

Alex Martelli aleax at mac.com
Mon Jul 3 00:33:29 EDT 2006


bruce <bedouglas at earthlink.net> wrote:

> hi...
> 
> perl has the concept of "die". does python have anything similar. how can a
> python app be stopped?
> 
> the docs refer to a sys.stop.. but i can't find anything else... am i
> missing something...

import sys

sys.exit()


Alex



More information about the Python-list mailing list