iterating over lines in a file

Bjorn Pettersen bjorn at roguewave.com
Sat Jul 22 11:35:40 EDT 2000


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