The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.python
From: Rex Turnbull <rex@no_spam.dicad.de>
Date: Thu, 24 May 2007 13:21:50 +0200
Local: Thurs, May 24 2007 9:21 pm
Subject: Re: 0 == False but [] != False?
Steven D'Aprano :
> On Thu, 24 May 2007 06:59:32 +0000, Tim Roberts wrote: Why compare to False? >> As a general rule, I've found code like "if x == False" to be a bad idea in > Surely that should be written as "if (x == False) == True"? " if not x : ... " It really doesn't matter if x is False or if it evaluates to False. Many >>> def tf(thing): You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||