What is the most efficient way to test for False in a list?

Paul Rubin http
Tue Jul 10 03:37:36 EDT 2007


Duncan Booth <duncan.booth at invalid.invalid> writes:
> >   status = not (False in list)
> 
> That is an equality test, not an identity test:
> 
> >>> False in [0]
> True

Arrggggh!  Strongly typed language, my eye ;-)  Thanks.



More information about the Python-list mailing list