Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.048 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.02; 'charset:iso-8859-7': 0.04; 'value,': 0.04; 'bool': 0.16; 'empty.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'nick': 0.16; 'wrote:': 0.18; 'value.': 0.19; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; '14,': 0.36; 'should': 0.36; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'expression': 0.60; 'subject:gets': 0.84; 'why?': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=4evbwmMUZs5Qp/DW650juqiyS+gcwWhqZMEbb5ktytM=; b=zP/ypE5tzNWo1lUNtOmrbznDLOvQIZJGzinQqHWN3iFJ3cokD34LzHZAggQNT8QAk1 Aa2obM9GchR5ZSfFzoD7K4OcmVvYR2zaPqxZ32kxYnr3wN//IKtNpRr5YFcRJsy41Cke 16Eo6vLQdRMFDYkTbE1SbS3ZgDcH673is/uVXDSpqDnn48pUiTblCDqbPKlWNNKjAoqc MOKbsLkT2e1U3pe6ndU/+BumrgqooOaYVJZKtyE4e4juc9B0k0NkTyZRWVYNlpKOBX7D 54J1/UDVAbhoA+fg1w+JKNXENU1jDiAZVB8BE4FzqzP8FxAy8SdZUPhDDjnFoIwp8FiQ 9RoA== MIME-Version: 1.0 X-Received: by 10.52.117.16 with SMTP id ka16mr397992vdb.43.1371199804948; Fri, 14 Jun 2013 01:50:04 -0700 (PDT) In-Reply-To: References: <2bc90d3b-09c2-4315-9357-ff7f039465e0@googlegroups.com> <51b926a3$0$29997$c3e8da3$5496439d@news.astraweb.com> <51ba6e92$0$29997$c3e8da3$5496439d@news.astraweb.com> Date: Fri, 14 Jun 2013 18:50:04 +1000 Subject: Re: A certainl part of an if() structure never gets executed. From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371199807 news.xs4all.nl 15982 [2001:888:2000:d::a6]:33283 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48092 On Fri, Jun 14, 2013 at 6:41 PM, Nick the Gr33k wrot= e: > On 14/6/2013 11:28 =F0=EC, Jussi Piitulainen wrote: > >>>>> 'Parker' and 'May' and '2001' >> >> '2001' > > > But why? > > that expression should return True since all stings are not empty. It does. Not the bool value, but it does return a true value. ChrisA