iterating over lines in a file

Bjorn Pettersen bjorn at roguewave.com
Sat Jul 22 12:06:31 EDT 2000


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

In this code sample, the same thing... but I see your point :-)

-b

> 
> --
> ----------------------------------------------------------------------
> 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
> >
> 
> --
> http://www.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list