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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.01; 'assign': 0.05; 'distinct': 0.05; 'type,': 0.07; 'python': 0.07; 'pm,': 0.11; 'wrote:': 0.14; 'boolean': 0.16; 'variable.': 0.16; 'subject:list': 0.22; 'header:In-Reply-To:1': 0.22; 'gregory': 0.23; "wasn't": 0.25; 'message-id:@mail.gmail.com': 0.28; "doesn't": 0.28; 'problem': 0.29; 'fri,': 0.29; 'about.': 0.29; 'least': 0.30; 'ewing': 0.31; 'to:addr:python-list': 0.32; 'expression': 0.33; 'that,': 0.35; 'received:209.85': 0.37; 'received:google.com': 0.38; 'but': 0.38; 'to:addr:python.org': 0.39; 'could': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; '13,': 0.60; '2011': 0.62; 'alternative': 0.69; '10:34': 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=wtuXws5TDHlFOYNG0de+jhR1z26n1G8IyEH7t/1Lr1Y=; b=rU+C7PqfM6lETLufEq0krA5zeVO+nvLl3f5kimqAOAxLvfGnxyczNs2oW5rXOR+kIX Qb0Jechd7mXZSPdWsADnwv30ZMkmLcabIPYuBFx+BYlF8LHW1Sm8I1p0oVcGElEkSRKc 8qvUsFHeuM00y6fbbVyT+xqdaNf5t4Wm/zy7g= 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=AO/eN/MWmT/P0mNdq7OwRBWH9OXSqgR5EysrCtVJfeirNPJ9T0X2j4M8RY4SYF70gZ Zl5SlUVZxoW+U4i390fXe7yn2CXLFkVYuy0wkTqe26PnXUfB+h1RwJji2lDujbYHxmhC Ihly5KHa/ZbT944aIRiND0QNWMnQyFFCvqq5Q= MIME-Version: 1.0 In-Reply-To: <93682bFq0fU2@mid.individual.net> 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> <93682bFq0fU2@mid.individual.net> Date: Sat, 14 May 2011 10:28:07 -0400 Subject: Re: checking if a list is empty From: David Robinow 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: 14 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305383294 news.xs4all.nl 41110 [::ffff:82.94.164.166]:44086 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5367 On Fri, May 13, 2011 at 10:34 PM, Gregory Ewing wrote: > rusi wrote: > >> Dijkstra's problem (paraphrased) is that python, by choosing the >> FORTRAN alternative of having a non-first-class boolean type, hinders >> scientific/mathematical thinking/progress. > > Python doesn't have the flaw that Dijkstra was talking about. > Fortran's flaw wasn't so much the lack of a boolean type, but > that you couldn't assign the result of a logical expression to > a variable. Python has always been able to do that, even before > it had a distinct boolean type. And Fortran could do it at least 25 years before Python was invented.