On Mon, 09 Jul 2007 06:21:31 +0300, Simon Forman <[EMAIL PROTECTED]>  
wrote:

>
> On Jul 8, 7:43 pm, lex <[EMAIL PROTECTED]> wrote:
>> Of course there is the always the iteration method:
>>
>> list = [1, True, True, False, False, True]
>> status = True
>> for each in list:
>>     status = status and each
>>
>> but what is your best way to test for for False in a list?
>
>
> False in list
>
>

all() is slightly faster


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to