Re: Looking for a way to stop execution of script, in the script

2006-11-14 Thread Josh Bloom
Thanks Fredrik, yeah the while loop for single run is pretty stupid. sys.exit() thats the call I was looking for. -JoshOn 11/14/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: Josh Bloom wrote:> Hi everyone, I'm looking for a way to stop execution of a script from> within the script.>> I'm familiar w

Re: Looking for a way to stop execution of script, in the script

2006-11-14 Thread Fredrik Lundh
Josh Bloom wrote: > Hi everyone, I'm looking for a way to stop execution of a script from > within the script. > > I'm familiar with this idiom: > > While 1: > doFirstThing() > doSecondThing() > if something: > break > doThirdThing() > break I'm not. why are you using a while st