Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion 0 == False but [] != False?

View parsed - Show only message text

Path: g2news1.google.com!news2.google.com!news.glorb.com!news.astraweb.com!router1.astraweb.com!sn-xt-sjc-05!sn-xt-sjc-06!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail
From: Grant Edwards <gra...@visi.com>
Newsgroups: comp.lang.python
Subject: Re: 0 == False but [] != False?
Date: Thu, 24 May 2007 14:14:37 -0000
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <135b7edigd80j18@corp.supernews.com>
References: <1179982400.412340.178710@g4g2000hsf.googlegroups.com> <1rda53hphn117k5scvcqrc7c2e37utfhgu@4ax.com> <pan.2007.05.24.10.50.56.763316@REMOVE.THIS.cybersource.com.au> <f33sgd$31t$1@news.pironet-ndh.com>
User-Agent: slrn/0.9.8.1 (Linux)
X-Complaints-To: abuse@supernews.com
Lines: 20

On 2007-05-24, Rex Turnbull <rex@no_spam.dicad.de> wrote:
> Steven D'Aprano :
>> 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"?
>
> Why compare to False?

That's a joke... I say, that's a joke, son!

He was being sarcastic.  

-- 
Grant Edwards                   grante             Yow! The FALAFEL SANDWICH
                                  at               lands on my HEAD and I
                               visi.com            become a VEGETARIAN ...

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google