[Tutor] end execution programmatically?

Mike Wagman mwagman at charter.net
Sun Mar 28 16:54:51 EST 2004


sys.exit()

On Sun, 2004-03-28 at 15:52, Gerald Wann wrote:
> Hi -
> 
> Is there any way (built-in function etc.) to end the execution of a .py 
> script from inside the code; specifically with a try: except: error 
> handler? Does the interpreter have to do it for you? I'm a relative newbie 
> to Python, in case it's not obvious;-)
> 
> Thanks.
> 
> Jerry
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor




More information about the Tutor mailing list