Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed6.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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'deletes': 0.09; 'subject:Extracting': 0.09; 'am,': 0.12; 'c++': 0.12; '16,': 0.15; 'language,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'none"': 0.16; 'objects;': 0.16; 'wed,': 0.17; 'wrote:': 0.18; 'received:209.85.210.174': 0.18; 'received:mail- iy0-f174.google.com': 0.18; 'refers': 0.23; 'header:In-Reply- To:1': 0.23; 'variable': 0.24; 'statement': 0.25; 'explicitly': 0.28; 'message-id:@mail.gmail.com': 0.29; 'subject:?': 0.31; 'nov': 0.31; "who's": 0.32; 'does': 0.32; 'to:addr:python-list': 0.32; 'someone': 0.33; 'all.': 0.34; 'identical': 0.34; 'symbol': 0.34; 'object': 0.35; 'subject:lists': 0.36; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; "i'd": 0.39; "it's": 0.39; 'subject:: ': 0.39; 'change': 0.39; 'might': 0.39; 'to:addr:python.org': 0.39; 'delete': 0.40; 'received:209': 0.40; '2011': 0.62; 'subject:over': 0.84; 'tied': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=R9Hxo95EhaptElfaq6/36bGt0nmYd+iAZIIozlxdr1k=; b=X3mA0WAr8pdHysTZkfmfaj12zDj2LQPsN5IH43ZzYXUPw38nP6c2r9lOBujsRp4t6f h7xUELPOHK7GkCpSeeRud4+kO36Up7qgxetq9rQjHMpS6nzAV40O0prMgj64EGgj9hR8 VNKFa7SjTNSALtEA8F3wdyYagGO3/JG9X/6wg= MIME-Version: 1.0 In-Reply-To: <4EC2ACCC.2000100@davea.name> References: <4EB828B3.1020509@sequans.com> <5B80DD153D7D744689F57F4FB69AF4740182FE@SCACMX008.exchad.jpmchase.net> <4EC2ACCC.2000100@davea.name> Date: Wed, 16 Nov 2011 06:53:26 +1100 Subject: Re: Extracting elements over multiple lists? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1321386809 news.xs4all.nl 6883 [2001:888:2000:d::a6]:54288 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15735 On Wed, Nov 16, 2011 at 5:17 AM, Dave Angel wrote: > a =3D someexpression... > b =3D a > .... > del a > > Does not (necessarily) delete the object that a refers to. =A0It merely > deletes the symbol a. I'd have to classify that as part of the change of thinking necessary for a refcounted language, and not specific to del at all. The del statement is identical to "a =3D None" in terms of deleting objects; someone who's come from C++ might want to explicitly del every variable before returning, but that's the only way that it's tied to 'del'. ChrisA