Breaking Out

James J. Besemer jb at cascade-sys.com
Fri Aug 23 21:18:06 CEST 2002


Sean 'Shaleh' Perry wrote:

> On Friday 23 August 2002 12:04 pm, Simon Faulkner wrote:
> > What is the polite way to skip to the end of a long if statement?
>
> 'break' is the statement you want.

BZZZZZZZZIT!  Wrong.

Break doesn't break an if.

YOu need a goto.  Wait, isn't one.

I suppose you have to say:

    if x==y:
        pass
        pass
        pass
        if dont want out:
            pass
            pass
            pass
            pass

After all, you DO have to somehow decide when you want out, no?

Regards

--jb


>
>
> --
> http://mail.python.org/mailman/listinfo/python-list

--
James J. Besemer  503-280-0838 voice
http://cascade-sys.com  503-280-0375 fax
mailto:jb at cascade-sys.com






More information about the Python-list mailing list