How to exit early?
Steve Holden
sholden at holdenweb.com
Sun Aug 18 11:14:51 EDT 2002
<brobbins333 at shaw.ca> wrote in message news:3d57dbd4.316565293 at news...
> The data input to my script may contain some that are special cases.
> If so, I want to process these in a special function, then exit
> without running the remainder of the script. What's the best way to do
> this? I need something like the 'exitsub' command in Visual Basic, or
> at least a way to jump to the end of the script and exit. Any
> suggestions?
>
raise SystemExit
regards
-----------------------------------------------------------------------
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------
More information about the Python-list
mailing list