and [True,True] --> [True, True]?????

Grant Edwards invalid at invalid
Tue Apr 21 16:35:13 CEST 2009


On 2009-04-21, Steven D'Aprano <steven at REMOVE.THIS.cybersource.com.au> wrote:

> No matter what x is (excluding buggy classes), "if x" means
> "test whether x is true in a boolean context".
>
> If x happens to be a list, that means "x is empty". If x is a
> float, it means "x is positive or negative zero".

I think you've got your true/false cases flipped...

-- 
Grant Edwards                   grante             Yow! I want my nose in
                                  at               lights!
                               visi.com            



More information about the Python-list mailing list