Go to Google Groups Home    comp.lang.python
Re: 0 == False but [] != False?

Steven D'Aprano <st...@remove.this.cybersource.com.au>

On Thu, 24 May 2007 06:59:32 +0000, Tim Roberts wrote:
> As a general rule, I've found code like "if x == False" to be a bad idea in
> ANY language.

Surely that should be written as "if (x == False) == True"?

--
Steven.