how to stop python...

Simon Forman rogue_pedro at yahoo.com
Mon Jul 3 00:36:58 EDT 2006


bruce 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...
>
> thanks
>
> -bruce

What you want is sys.exit()
See: http://docs.python.org/lib/module-sys.html




More information about the Python-list mailing list