Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'completeness': 0.05; 'python': 0.08; 'subject:Extracting': 0.09; 'cc:addr:python-list': 0.15; '"del"': 0.16; '712': 0.16; 'currencies': 0.16; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'from:addr:jpmorgan.com': 0.16; 'received:155.180': 0.16; 'received:159.53': 0.16; 'received:169.70': 0.16; 'received:169.70.184': 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; 'securities,': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'header:In-Reply- To:1': 0.23; 'cc:2**0': 0.25; 'statement': 0.25; 'cc:addr:python.org': 0.29; 'received:155': 0.30; 'received:159': 0.30; 'subject:?': 0.31; 'quite': 0.32; 'received:169': 0.34; 'received:169.254': 0.34; 'phone:': 0.34; 'skip:" 20': 0.35; 'header:Received:8': 0.36; 'subject:lists': 0.36; 'charset:us- ascii': 0.36; 'accuracy': 0.36; 'but': 0.37; 'why': 0.39; 'subject:: ': 0.39; 'subject': 0.61; 'information,': 0.66; 'legal': 0.71; 'url:email': 0.72; 'sale': 0.75; 'bank': 0.76; 'investment': 0.77; 'purchase': 0.84; 'received:169.254.8': 0.84; 'subject:over': 0.84 X-DKIM: Sendmail DKIM Filter v2.8.4 sz2.jpmchase.com pAFH1jk9023849 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=jpmorgan.com; s=smtpout; t=1321376506; bh=2iHoL53cmYls2vHZ9U8PWSMh/3SIEcKLZMccuxaq73U=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=F6jLxix1jI5fyjteZl/1GJnZBUmy1yfgo0BAqxLt3o+ZXFzggOfQOF35YBTMlp+bG PFFqX8wwSsDDZOKMZRaCmBOi/DOY43u4jC0bo3T+ag4AtokJ6Qj6uXoMcdQNXA57Qk /JOuyCF/ORxdHxU9k0LZevRkcRnfip78VCmtstL4= From: "Prasad, Ramit" To: Jean-Michel Pichavant Subject: RE: Extracting elements over multiple lists? Thread-Topic: Extracting elements over multiple lists? Thread-Index: AcydflPw04W2VyaCT32mwsWIS6x9JgGOa1Jg Date: Tue, 15 Nov 2011 17:01:23 +0000 References: <4EB828B3.1020509@sequans.com> In-Reply-To: <4EB828B3.1020509@sequans.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.67.79.38] Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-DLP-FWD: Yes 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1321376515 news.xs4all.nl 6923 [2001:888:2000:d::a6]:55140 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15723 >>for x in a, b, c:=0D=0A>> del x[0]=0D=0A>for arr in [a,b,c]:=0D=0A> a= rr=2Epop(0)=0D=0A=0D=0A>(Peter's "del" solution is quite close, but I find = the 'del' statement =0D=0A>tricky in python and will mislead many python ne= wcomers)=0D=0A=0D=0ACan you expand on why 'del' is "tricky"/misleading?=0D= =0A=0D=0ARamit=0D=0A=0D=0A=0D=0ARamit Prasad | JPMorgan Chase Investment Ba= nk | Currencies Technology=0D=0A712 Main Street | Houston, TX 77002=0D=0Awo= rk phone: 713 - 216 - 5423=0D=0A=0D=0A--=0D=0A=0D=0AThis email is confident= ial and subject to important disclaimers and=0D=0Aconditions including on o= ffers for the purchase or sale of=0D=0Asecurities, accuracy and completenes= s of information, viruses,=0D=0Aconfidentiality, legal privilege, and legal= entity disclaimers,=0D=0Aavailable at http://www=2Ejpmorgan=2Ecom/pages/di= sclosures/email=2E