Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!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.062 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'python,': 0.01; 'pm,': 0.11; 'wrote:': 0.14; 'true)': 0.16; 'true,': 0.19; 'subject:list': 0.22; 'header:In-Reply-To:1': 0.22; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; 'sat,': 0.29; 'does': 0.31; 'to:addr:python-list': 0.32; 'received:209.85': 0.37; 'received:google.com': 0.38; 'sign': 0.38; 'work?': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'how': 0.39; "it's": 0.40; 'header:Received:5': 0.40; '2011': 0.62; 'illegal': 0.72; '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; bh=N+C+TcEeZSUj7U+X6SqYf0cMbKLpwerM5S3E18vCgsw=; b=LSBikMM4EylbCNkpGs5h2MuXlX3U/YvHDeEFBplXFY1ftsQ5BedR4Mf35e649vxgk2 7kXioaX1bEF8gj/TewsTtsrMoRbMNrqKMWzDB48V2yfah/aPpgOOH28aDUACnP41bxhm E8nf/uPfRigW/fWVFh1EohgkL/+K2R49yGJxY= 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; b=NeSoEJkHyydRVKo/OYSR+1941XlhFLXTupOakGkrmdAag7guxVTw3jJ7lpBfAgTCNz Yv/71GIdIC4GhHvQXD+MdfraB/tAY2/AK8w8vxUwzNkILKzKJxYKZVlRDgNPYKwx9ClN EVjiSlb1CHauUU3hkMxgSrZGhXuzMgOM1AdSU= 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: Sat, 14 May 2011 23:42:45 +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 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: 8 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305380575 news.xs4all.nl 41110 [::ffff:82.94.164.166]:48017 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5364 On Sat, May 14, 2011 at 5:45 PM, rusi wrote: > And then we get the interesting result that > (True = True) is False How does this work? In Python, the = sign is illegal there, and if you mean True == True, then it's True (obviously), which is not False. Chris Angelico