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?

44 of 49 people (90%) answered Yes
Recently 8 of 10 people (80%) 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.