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!news3.google.com!proxad.net!fdn.fr!club-internet.fr!feedme-small.clubint.net!news.astraweb.com!border2.a.newsrouter.astraweb.com!feeder.news-service.com!feeder.news-service.com!newsgate.cistron.nl!xs4all!transit4.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path: <python-python-l...@m.gmane.org>
X-Original-To: python-l...@python.org
Delivered-To: python-l...@bag.python.org
X-Spam-Status: OK 0.007
X-Injected-Via-Gmane: http://gmane.org/
To: python-l...@python.org
From: Steve Holden <st...@holdenweb.com>
Subject: Re: 0 == False but [] != False?
Date: Thu, 24 May 2007 19:09:09 -0400
References: <1179982400.412340.178710@g4g2000hsf.googlegroups.com>	<1rda53hphn117k5scvcqrc7c2e37utfhgu@4ax.com>
	<1180047740.001604.267170@q66g2000hsg.googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Gmane-NNTP-Posting-Host: c-24-125-177-214.hsd1.va.comcast.net
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
In-Reply-To: <1180047740.001604.267170@q66g2000hsg.googlegroups.com>
Sender: news <n...@sea.gmane.org>
X-BeenThere: python-l...@python.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: General discussion list for the Python programming language
	<python-list.python.org>
List-Unsubscribe: <http://mail.python.org/mailman/listinfo/python-list>,
	<mailto:python-list-requ...@python.org?subject=unsubscribe>
List-Archive: <http://mail.python.org/pipermail/python-list>
List-Post: <mailto:python-l...@python.org>
List-Help: <mailto:python-list-requ...@python.org?subject=help>
List-Subscribe: <http://mail.python.org/mailman/listinfo/python-list>,
	<mailto:python-list-requ...@python.org?subject=subscribe>
Newsgroups: comp.lang.python
Message-ID: <mailman.8150.1180048183.32031.python-list@python.org>
Lines: 29
NNTP-Posting-Host: 194.109.207.14
X-Trace: 1180048183 news.xs4all.nl 321 [::ffff:194.109.207.14]:41924
X-Complaints-To: abuse@xs4all.nl

Dan Bishop wrote:
> On May 24, 1:59 am, Tim Roberts <t...@probo.com> wrote:
> ...
>> False is just a constant.  0, (), '', [], and False are all constants that
>> happen to evaluate to a false value in a Boolean context, but they are not
>> all the same.
>>
>> As a general rule, I've found code like "if x == False" to be a bad idea in
>> ANY language.
> 
> I have a job as a C++ programmer, and they make us write it like that,
> apparently because the ! operator is hard to see.  But "if (x ==
> TRUE)" is discouraged.
> 
Find a new employer. I'm not joking.

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
------------------ Asciimercial ---------------------
Get on the web: Blog, lens and tag your way to fame!!
holdenweb.blogspot.com        squidoo.com/pythonology
tagged items:         del.icio.us/steve.holden/python
All these services currently offer free registration!
-------------- Thank You for Reading ----------------


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