How to exit early?

Steve Holden sholden at
Sun Aug 18 17:14:51 CEST 2002

<brobbins333 at> 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

Steve Holden                       
Python Web Programming      

More information about the Python-list mailing list