testing array of logicals

Simon Forman rogue_pedro at yahoo.com
Sat Aug 5 18:39:53 EDT 2006


Janto Dreijer wrote:
> Janto Dreijer wrote:
> > John Henry wrote:
> > > Simon Forman wrote:
> > > > >
> > > > > False not in logflags
> > > > >
> > > >
> > > > Or, if your values aren't already bools
> > > >
> > > > False not in (bool(n) for n in logflags)
> > >
> > > Very intriguing use of "not in"...
> >
> > Is there a reason why you didn't write
> >  True in (bool(n) for n in logflags)
> 
> <slaps forehead> doh! Never mind.

*grin*




More information about the Python-list mailing list