A simple question: How to exit from a python script? Just like the exit() in C++

Erik Max Francis max at alcyone.com
Wed Nov 20 23:30:06 EST 2002


You wrote:

> I have a simple question as is written in the header, how can I exit
> from a python program using a call
> such as "exit()" in C++?

	sys.exit()

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Nothing you have said / Is revelation
\__/ The Russian, _Chess_
    CSBuddy / http://www.alcyone.com/pyos/csbuddy/
 A Counter-Strike server log file monitor in Python.



More information about the Python-list mailing list