Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed6.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.05; 'completeness': 0.05; 'herein': 0.07; 'received:172.18': 0.07; 'semantic': 0.07; 'python': 0.07; 'scientists': 0.09; 'severely': 0.09; 'syntax.': 0.09; 'programmer': 0.11; 'message-----': 0.14; 'wrote:': 0.14; '712': 0.16; 'affiliates,': 0.16; 'biology': 0.16; 'calculating': 0.16; 'currencies': 0.16; 'die,': 0.16; 'down."': 0.16; 'gmt,': 0.16; 'opened,': 0.16; 'paradigm': 0.16; 'received:155.180': 0.16; 'received:159.53': 0.16; 'received:159.53.110': 0.16; 'received:169.70': 0.16; 'received:169.70.190': 0.16; 'received:172.18.0': 0.16; 'received:bankone.net': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:svr.bankone.net': 0.16; 'solicitation': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'what?': 0.16; 'wednesday,': 0.16; 'this?': 0.18; 'cc:2**0': 0.20; 'programming': 0.20; 'subject:list': 0.22; 'header:In-Reply-To:1': 0.22; 'cc:addr :python-list': 0.22; 'applicable,': 0.23; 'reflect': 0.24; 'received:169': 0.25; 'received:169.254': 0.25; 'url:mailman': 0.27; 'scientific': 0.29; 'string': 0.29; 'checking': 0.29; 'concern': 0.29; 'depends': 0.29; 'list': 0.30; 'cc:addr:python.org': 0.31; '>and': 0.31; 'chase': 0.31; 'math,': 0.31; 'received:155': 0.31; 'received:159': 0.31; 'received:169.254.1': 0.31; 'format.': 0.31; 'thank': 0.32; 'url:listinfo': 0.33; '(including': 0.33; 'legally': 0.33; 'subject:': 0.33; 'someone': 0.33; 'phone:': 0.33; 'test': 0.33; 'starting': 0.34; 'change': 0.34; 'accepted': 0.35; 'purposes': 0.35; 'question': 0.35; 'arising': 0.35; 'disclosure': 0.36; 'charset:us-ascii': 0.36; 'data': 0.37; 'some': 0.37; 'refer': 0.37; 'url:python': 0.37; 'skip:- 10': 0.37; 'accuracy': 0.38; 'be,': 0.38; 'engineers': 0.38; 'steven': 0.38; 'but': 0.38; 'url:org': 0.38; 'software': 0.38; 'sent:': 0.39; 'affect': 0.39; 'much.': 0.39; 'under': 0.39; 'comments': 0.39; 'from:': 0.39; 'how': 0.39; 'empty': 0.40; 'would': 0.40; 'necessarily': 0.40; 'street': 0.40; 'contained': 0.40; 'might': 0.40; 'co.,': 0.60; 'transaction.': 0.60; 'virus': 0.61; 'subject': 0.61; 'you.': 0.61; '2011': 0.62; 'free': 0.62; 'market': 0.63; 'legal': 0.64; 'law.': 0.65; 'contact': 0.65; 'care': 0.67; 'relating': 0.68; 'lost': 0.71; 'offer': 0.72; 'sale': 0.74; 'papers': 0.74; 'claim': 0.76; 'investment': 0.77; '11,': 0.77; 'average': 0.77; 'bank': 0.78; 'purchase': 0.80; 'affiliates.': 0.84; 'defect': 0.84; 'newbie,': 0.84; 'prices,': 0.84; 'swallow.': 0.84; 'instrument': 0.95; 'notice.': 0.95; 'absolutely': 0.98 X-DKIM: Sendmail DKIM Filter v2.5.6 sj1.jpmchase.com p4BIijOn011901 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=jpmchase.com; s=smtpout; t=1305139485; bh=w8uSu7+ResnyIdR+cZ6xyqGNHB8QUMHbjUHtvsU WGmo=; h=From:To:CC:Date:Subject:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=pfA0iBvV5uW K5n2ZSeMjnnxTO11p9NjHAy7A+V1WIUoAmfuOzw8EdIWCCFgjyWUdqig18+CSsEBNsk 6YrwNMzPvA8QRJzTcOX0ZvcLrsjnS9VpbHexm/hgsJwXU5RZnGAAcsnCQdCEnrHSpCF D155N+JnYJ/zvFPmgDQLycqDaY= From: "Prasad, Ramit" To: "'Hans Georg Schaathun'" Date: Wed, 11 May 2011 14:44:37 -0400 Subject: RE: checking if a list is empty Thread-Topic: checking if a list is empty Thread-Index: AcwQCMNdUmbgFMcBQqKFq2zY7E8vdAAAi4SA References: <9hYwp.5805$xo2.3333@newsfe07.iad> <4dc502c7$0$29991$c3e8da3$5496439d@news.astraweb.com> <4dca9310$0$29980$c3e8da3$5496439d@news.astraweb.com> <4dcab8bf$0$29980$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: "'python-list@python.org'" 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: 52 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305141260 news.xs4all.nl 41103 [::ffff:82.94.164.166]:58876 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5156 > Someone who knows how to program is never clueless starting a new=0D=0A>l= anguage=2E Newbie, may be, but he knows most of the constructions=0D=0A>an= d semantic principles to look for; most of it is learning the syntax=2E=0D= =0A=0D=0AI claim to be able to program (Java/Python), but would be absolute= ly lost programming in Lisp=2E It is more than just "learning the syntax", = it includes a thought paradigm as well=2E=0D=0A=0D=0AJust like I claim to b= e able to do math, but severely suck at RPN math=2E (Okay, that analogy is = bad but it is all I can come up with at the moment=2E)=0D=0A=0D=0ARamit=0D= =0A=0D=0A=0D=0A=0D=0ARamit Prasad | JPMorgan Chase Investment Bank | Curren= cies Technology=0D=0A712 Main Street | Houston, TX 77002=0D=0Awork phone: 7= 13 - 216 - 5423=0D=0A=0D=0A=0D=0A-----Original Message-----=0D=0AFrom: pyth= on-list-bounces+ramit=2Eprasad=3Djpmchase=2Ecom@python=2Eorg [mailto:python= -list-bounces+ramit=2Eprasad=3Djpmchase=2Ecom@python=2Eorg] On Behalf Of Ha= ns Georg Schaathun=0D=0ASent: Wednesday, May 11, 2011 1:06 PM=0D=0ATo: pyth= on-list@python=2Eorg=0D=0ASubject: Re: checking if a list is empty=0D=0A=0D= =0AOn 11 May 2011 16:26:40 GMT, Steven D'Aprano=0D=0A wrote:=0D=0A: > 1=2E My concern was not about cl= ueless newbies=2E They need to=0D=0A: > learn=2E My concern is about ex= perienced scientists and engineers who=0D=0A: > are simply new to python= =2E=0D=0A: =0D=0A: Which makes them clueless newbies *about Python*=2E I d= on't care how =0D=0A: experienced they are in astrophysics or biology or c= alculating the =0D=0A: average airspeed of an unladen swallow=2E=0D=0A=0D= =0A: Yeah, life is hard and then you die, and scientists don't even get pa= id =0D=0A: that much=2E So what? Do physicists write their scientific pape= rs about =0D=0A: string theory with the thought "What if some Python progr= ammer who knows =0D=0A: nothing about string theory is reading this? I bet= ter dumb it down=2E"=0D=0A=0D=0AThat depends on the purpose of that particu= lar paper, but the real =0D=0Aquestion is, who writes the software to test = that string theory =0D=0Aempirically? Please tell=2E=0D=0A=0D=0A-- =0D=0A:= -- Hans Georg=0D=0A-- =0D=0Ahttp://mail=2Epython=2Eorg/mailman/listinfo/pyt= hon-list=0D=0AThis communication is for informational purposes only=2E It i= s not=0Aintended as an offer or solicitation for the purchase or sale of=0A= any financial instrument or as an official confirmation of any=0Atransactio= n=2E All market prices, data and other information are not=0Awarranted as t= o completeness or accuracy and are subject to change=0Awithout notice=2E An= y comments or statements made herein do not=0Anecessarily reflect those of = JPMorgan Chase & Co=2E, its subsidiaries=0Aand affiliates=2E=0D=0A=0D=0AThi= s transmission may contain information that is privileged,=0Aconfidential, = legally privileged, and/or exempt from disclosure=0Aunder applicable law=2E= If you are not the intended recipient, you=0Aare hereby notified that any = disclosure, copying, distribution, or=0Ause of the information contained he= rein (including any reliance=0Athereon) is STRICTLY PROHIBITED=2E Although = this transmission and any=0Aattachments are believed to be free of any viru= s or other defect=0Athat might affect any computer system into which it is = received and=0Aopened, it is the responsibility of the recipient to ensure = that it=0Ais virus free and no responsibility is accepted by JPMorgan Chase= &=0ACo=2E, its subsidiaries and affiliates, as applicable, for any loss=0A= or damage arising in any way from its use=2E If you received this=0Atransmi= ssion in error, please immediately contact the sender and=0Adestroy the mat= erial in its entirety, whether in electronic or hard=0Acopy format=2E Thank= you=2E=0D=0A=0D=0APlease refer to http://www=2Ejpmorgan=2Ecom/pages/disclo= sures for=0Adisclosures relating to European legal entities=2E