faqts : Computers : Programming : Languages : Python

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

42 of 46 people (91%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

How can I stop a python program execution?

Nov 26th, 2004 15:04
Kyle Brooks, Manu X,


Hello,

You might want to use sys.exit([sts]) (import sys first!) or 'raise
SystemExit[,sts]'

note: the [] means optional.