do...until wisdom found...

Fredrik Lundh fredrik at pythonware.com
Wed Apr 18 12:24:13 EDT 2001


Dave LeBlanc wrote:
> >But it does have one entry point and one exit point! Count 'em:
> >
> >while 1:                        <--- one entry point
> >    set up for this cycle
> >    if c: break                 <--- one exit point
> >    whatever needs to be done
>       <----- another exit point

under what circumstances will that loop exit at the end?

Cheers /F





More information about the Python-list mailing list