how to stop python

Laurent Pointal laurent.pointal at limsi.fr
Wed Aug 2 04:22:22 EDT 2006


victor a écrit :
> or if u want explicit exit of program then use:
> 
> import sys
> sys.exit(1)
> 
> or
> 
> raise SystemExit, 'message'

There is also the (not recommanded - see docs, but it exists)
os._exit(n)  function.

A+

Laurent.



More information about the Python-list mailing list