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

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Mon Jul 9 20:02:16 CEST 2007


Paul Rubin wrote:
> Bjoern Schliessmann <usenet-mail-0306.20.chr0n0ss at spamgourmet.com>
> writes:

>> 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".

Oops, read over that case. Still: No identity test for False.

Regards,


Björn

-- 
BOFH excuse #145:

Flat tire on station wagon with tapes.  ("Never underestimate the
bandwidth of a station wagon full of tapes hurling down the
highway" Andrew S. Tannenbaum) 




More information about the Python-list mailing list