Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.100 X-Spam-Evidence: '*H*': 0.80; '*S*': 0.00; 'false,': 0.09; 'sun,': 0.09; 'am,': 0.14; 'wrote:': 0.14; '(call': 0.16; 'condense': 0.16; 'fits': 0.16; 'okay,': 0.16; "there'll": 0.16; 'argument': 0.16; 'subject:list': 0.22; 'header:In-Reply-To:1': 0.22; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; 'it.': 0.31; 'to:addr :python-list': 0.32; 'another': 0.32; 'doing': 0.36; 'two': 0.37; 'received:209.85': 0.37; 'steven': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'to:addr:python.org': 0.39; 'could': 0.39; 'received:209': 0.39; "it's": 0.40; 'header:Received:5': 0.40; 'exact': 0.60; 'huge': 0.62; '2011': 0.62; 'url:search': 0.64; 'url:cgi': 0.65; 'here.': 0.68; 'states,': 0.73; '[1,2]': 0.84; 'received:209.85.210.174': 0.84; 'received:mail- iy0-f174.google.com': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=tDw3tNEAT4F+x5gy75iAiop31uVMu0k5Sq1WPY9OMrM=; b=puWeMdCrI9eOTFwBxQpr+Vx7gOQZ1UL/CybZ7+NsCqTMhneCNX8f4Ph7OEOrtvkRU5 brUduL9XCwaLnbbA42QqVQRhqAJzgILPexjKqKn+58sg/+BHlx13yKNmvTNSvxnYS+Si ME2OQ2Ot8E+p09egqBBHMK2MMLHIRJ0Xia6q4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=NGTC304Bw9YsQejmzi62pIyV6LUs8SRFBB/TFEsSmV+8dgejGKT24XvYGUEXWjq5LY jATb8hmyksr3k0KazXGI8gNFdBKCIBOKYoDpthZ+PVORdE6r31Oh7Pve66Cp5nglWJ+0 SJ5MuHY0a47jLITgijmX8HpF0KVKjiK83xOXw= MIME-Version: 1.0 In-Reply-To: References: <200e93c2-6b87-4113-9c6f-85815e51ea77@28g2000yqu.googlegroups.com> <4dc4b3c5$0$29991$c3e8da3$5496439d@news.astraweb.com> <931adaF9g1U1@mid.individual.net> <4dcc785e$0$29980$c3e8da3$5496439d@news.astraweb.com> <4dce31b3$0$29980$c3e8da3$5496439d@news.astraweb.com> Date: Sun, 15 May 2011 01:55:34 +1000 Subject: Re: checking if a list is empty From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305388537 news.xs4all.nl 81485 [::ffff:82.94.164.166]:60027 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5373 On Sun, May 15, 2011 at 1:47 AM, rusi wrote: > So since > [1,2,3] is one way of writing True (lets call it True3) > and [1,2] is another (call it True2) > then we have True3 =3D=3D True2 is False > > But since according to Steven (according to Python?) True3 *is the > same* as True2 > we get > =A0False > =3D [1,2,3] =3D=3D [1,2] > =3D True3 =A0=3D=3D True2 > =3D True =3D=3D True > =3D True Okay, I see what you're doing here. http://www.rinkworks.com/ithink/search.cgi?words=3Dcompress When you condense a whole lot of information down to just two states, True and False, *obviously* there'll be a huge amount that fits into one or the other without being identical. It's not an argument for whether [1,2,3] ought to be True or ought to be False. You could make the exact same argument if they evaluated to False. You have proven nothing and just wasted your time proving it. Chris Angelico