On 2009-04-21, Steven D'Aprano <ste...@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 -- http://mail.python.org/mailman/listinfo/python-list