Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'beginner': 0.04; 'completeness': 0.05; 'herein': 0.07; 'python?': 0.07; 'received:172.18': 0.07; 'python': 0.07; '(unless': 0.09; 'context.': 0.09; 'counting': 0.09; 'generators': 0.09; '712': 0.16; 'affiliates,': 0.16; 'currencies': 0.16; 'generators.': 0.16; 'intuition': 0.16; 'looping': 0.16; 'opened,': 0.16; 'optimizing': 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; 'argument': 0.16; 'intermediate': 0.16; 'code.': 0.18; 'to:2**1': 0.20; 'subject:list': 0.22; 'code': 0.22; 'header:In-Reply-To:1': 0.22; 'loop': 0.22; 'trying': 0.23; 'applicable,': 0.23; 'reflect': 0.24; 'received:169': 0.25; 'received:169.254': 0.25; 'instead': 0.26; 'knowing': 0.29; 'certainly': 0.29; '>the': 0.31; 'chase': 0.31; 'received:155': 0.31; 'received:159': 0.31; 'received:169.254.1': 0.31; 'format.': 0.31; 'language.': 0.31; 'to:addr:python-list': 0.32; 'thank': 0.32; '(including': 0.33; 'legally': 0.33; 'someone': 0.33; 'phone:': 0.33; 'using': 0.34; 'change': 0.34; 'accepted': 0.35; 'header:Received:8': 0.35; 'purposes': 0.35; 'difficult': 0.35; 'point': 0.35; 'arising': 0.35; 'explicit': 0.35; 'widely': 0.35; 'disclosure': 0.36; 'feature': 0.36; 'charset:us-ascii': 0.36; 'data': 0.37; 'refer': 0.37; 'should': 0.37; 'accuracy': 0.38; 'but': 0.38; 'used': 0.38; 'help': 0.39; 'affect': 0.39; 'under': 0.39; 'comments': 0.39; 'common': 0.39; 'to:addr:python.org': 0.39; 'how': 0.39; 'attempt': 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; 'free': 0.62; 'market': 0.63; 'legal': 0.64; 'law.': 0.65; 'contact': 0.65; 'relating': 0.68; 'offer': 0.72; 'sale': 0.74; 'investment': 0.77; 'bank': 0.78; 'purchase': 0.80; 'affiliates.': 0.84; 'defect': 0.84; 'prices,': 0.84; 'instrument': 0.95; 'notice.': 0.95 X-DKIM: Sendmail DKIM Filter v2.8.4 sj3.jpmchase.com p4BHpATN027342 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=jpmchase.com; s=smtpout; t=1305136270; bh=Yhx88TxI1wscJDZxZBm7/p+ZRXhpFV4ec1/2yx81hhg=; h=From:To:Date:Subject:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=KMNr8V0JJGE27wRYl90V53BVFniOW8+hkQmqQDSxMyCwQ93mj3cflgKS2LWS+2ECp 68lOuTGrfFOED+90YvlctGeQT65ED0sqhn+1KepyUekqGgx2ZseBO6KeSBmDxbncRh 4JKP99HBRCJFV2xfKIr/R9FSwmyF0ePKDLgWGWR0= From: "Prasad, Ramit" To: "'Hans Georg Schaathun'" , "'python-list@python.org'" Date: Wed, 11 May 2011 13:50:54 -0400 Subject: RE: checking if a list is empty Thread-Topic: checking if a list is empty Thread-Index: AcwP5QspjF87oTqeTp6imwRI1E9h2AAHbjKQ References: <9hYwp.5805$xo2.3333@newsfe07.iad> <4dc4b351$0$29991$c3e8da3$5496439d@news.astraweb.com> <4dca90c1$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" 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: 39 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305136274 news.xs4all.nl 34849 [::ffff:82.94.164.166]:58600 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5136 >The audience I am concerned about is the ones who are over-educated =0D=0A= >into using and having used a score of different meanings of the same=0D=0A= >symbols=2E They will be used to their intuition being wrong when they=0D= =0A>move into a new context=2E Being explicit will help them=2E=0D=0A=0D= =0AI find this argument to be flawed=2E Should I stop using built-in genera= tors instead of range/xrange for looping through lists? Certainly for loops= with loop counting are understood more widely than generators=2E Should I = stop using any advanced feature Python because it is difficult to understan= d without knowing Python?=0D=0A=0D=0AI do not code for absolute beginner in= Python to read my code=2E That way lies madness! I code with the assumptio= n that someone with intermediate knowledge can read my code (unless I am fo= rced into optimizing and then I rely on comments to explain)=2E Actually, t= hat is how I attempt to code in any language=2E=0D=0A=0D=0AI may not have m= ade the point well, but I cannot see any advantage for trying to program fo= r the lowest common denominator=2E=0D=0A=0D=0A=0D=0ARamit=0D=0A=0D=0A=0D=0A= =0D=0ARamit Prasad | JPMorgan Chase Investment Bank | Currencies Technology= =0D=0A712 Main Street | Houston, TX 77002=0D=0Awork phone: 713 - 216 - 5423= =0D=0A=0D=0AThis communication is for informational purposes only=2E It is = not=0Aintended as an offer or solicitation for the purchase or sale of=0Aan= y financial instrument or as an official confirmation of any=0Atransaction= =2E All market prices, data and other information are not=0Awarranted as to= completeness or accuracy and are subject to change=0Awithout notice=2E Any= comments or statements made herein do not=0Anecessarily reflect those of J= PMorgan Chase & Co=2E, its subsidiaries=0Aand affiliates=2E=0D=0A=0D=0AThis= transmission may contain information that is privileged,=0Aconfidential, l= egally privileged, and/or exempt from disclosure=0Aunder applicable law=2E = If you are not the intended recipient, you=0Aare hereby notified that any d= isclosure, copying, distribution, or=0Ause of the information contained her= ein (including any reliance=0Athereon) is STRICTLY PROHIBITED=2E Although t= his transmission and any=0Aattachments are believed to be free of any virus= or other defect=0Athat might affect any computer system into which it is r= eceived and=0Aopened, it is the responsibility of the recipient to ensure t= hat it=0Ais virus free and no responsibility is accepted by JPMorgan Chase = &=0ACo=2E, its subsidiaries and affiliates, as applicable, for any loss=0Ao= r damage arising in any way from its use=2E If you received this=0Atransmis= sion in error, please immediately contact the sender and=0Adestroy the mate= rial 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/disclos= ures for=0Adisclosures relating to European legal entities=2E