iterating over lines in a file

Olivier Dagenais olivierS.dagenaisP at canadaA.comM
Sat Jul 22 11:41:49 EDT 2000


Supposing it evaluates to 0 (false).  Now, everything_is_ok is equal to
zero, so the next time you evaluate it...

--
----------------------------------------------------------------------
Olivier A. Dagenais - Carleton University - Computer Science III


"Bjorn Pettersen" <bjorn at roguewave.com> wrote in message
news:3979BF4C.6C60E636 at roguewave.com...
> Moshe Zadka wrote:
> >
> > On Fri, 21 Jul 2000, Gareth McCaughan wrote:
> >
> > > Moshe Zadka wrote:
> > >
> > > > Preventing world war III, when Python achieves world domination.
> > > > If C is allowed to achieve world domination, WWIII will be cause by
> > > >
> > > > if(everything_is_ok = 0) {
> > > >     launch_missile();
> > > > }
> > >
> > > No, that will *prevent* WW3 happening when it was supposed to.
> > > Where do I sign up for the campaign to help C dominate the
> > > world? :-)
> >
> > You probably need to reread the condition.
>
> Probably not... Since 0 (zero) is false, and the result of an assignment
> expression in the rhs, you would never execute the block...
>
> -b
>





More information about the Python-list mailing list