testing array of logicals

John Henry john106henry at hotmail.com
Thu Jul 13 08:45:21 EDT 2006


Simon Brunning wrote:
> On 12 Jul 2006 11:14:43 -0700, John Henry <john106henry at hotmail.com> wrote:
> > Is there a more elagant way of doing this?
> >
> > # logflags is an array of logicals
> > test=True
> > for x in logflags:
> >    test = test and x
> > print test
>
> min(logflags)
>

!!!


> I feel dirty now. ;-)
>

ROFL

Thanks to everybody that replied.


> --
> Cheers,
> Simon B,
> simon at brunningonline.net,
> http://www.brunningonline.net/simon/blog/




More information about the Python-list mailing list