"John Henry" <[EMAIL PROTECTED]> writes:
> # logflags is an array of logicals
> test=True
> for x in logflags:
>    test = test and x
> print test

    print (False not in map(bool, logflags))

Possibly more "pure" alternative (untested):

    from operator import and_
    print reduce(and_, map(bool, logflags))
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to