No Do while/repeat until looping construct in python?

marshall marshall at spamhole.com
Fri Mar 14 04:32:26 CET 2003


Alex Martelli <aleax at aleax.it> wrote in message news:<3bXba.70188$zo2.1844793 at news2.tin.it>...
> marshall wrote:
>    ...
> > I think that:
> >   
> >   if finished = 1: break
> > 
> > is just as good as:
> >   
> >   until finished = 1
> 
> Comparison is by == -- not by a single = -- doesn't affect your main
> point but it should still be pointed out.


Oops. (blush)  Make this one all the time.  I could point out how
quickly python flags it for me but I will save that for the next
"assignment inside an expression" thread.


Marshall




More information about the Python-list mailing list