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
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
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()
breakBut that seems a little kludgy to me with extra breaks involved. Is there a way to do someth