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

Paul Rubin http
Mon Jul 9 11:40:09 EDT 2007


Bjoern Schliessmann <usenet-mail-0306.20.chr0n0ss at spamgourmet.com> writes:
> > You are mistaken. all take an iterable and returns if each value
> > of it is true.
> 
> That's an identity test for True, not for False (the latter was
> requested). Thus, I'm not mistaken.

No, "true" is not the same thing as "True".  



More information about the Python-list mailing list