John Henry wrote:
> Hi list,
>
> 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
>
> --
> Thanks,

So many ways....  *drool*
How about:

False not in logflags


(Anybody gonna run all these through timeit?  ;P )

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to