testing array of logicals

John Henry john106henry at hotmail.com
Thu Jul 13 22:25:44 EDT 2006


Simon Forman wrote:
> >
> > False not in logflags
> >
>
> Or, if your values aren't already bools
>
> False not in (bool(n) for n in logflags)
> 
> 
> 
> Peace,
> ~Simon

Very intriguing use of "not in"...

Thanks,




More information about the Python-list mailing list