Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #15735

Re: Extracting elements over multiple lists?

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 <rosuav@gmail.com>
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 <b9e53a75-7490-4b6a-844a-20cfce263939@a12g2000vbz.googlegroups.com> <j995eq$vr9$1@news.univ-fcomte.fr> <cf007146-3a08-44c4-bf01-d1a9253c83e3@o19g2000vbk.googlegroups.com> <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 <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2745.1321386809.27778.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Wed, Nov 16, 2011 at 5:17 AM, Dave Angel <d@davea.name> wrote:
> a = someexpression...
> b = a
> ....
> del a
>
> Does not (necessarily) delete the object that a refers to.  It 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 = 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Extracting elements over multiple lists? JoeM <josephmeiring@gmail.com> - 2011-11-07 09:12 -0800
  Re: Extracting elements over multiple lists? John Gordon <gordon@panix.com> - 2011-11-07 17:37 +0000
  Re: Extracting elements over multiple lists? Laurent Claessens <moky.math@gmail.com> - 2011-11-07 18:44 +0100
    Re: Extracting elements over multiple lists? JoeM <josephmeiring@gmail.com> - 2011-11-07 10:01 -0800
      Re: Extracting elements over multiple lists? John Gordon <gordon@panix.com> - 2011-11-07 18:22 +0000
        Re: Extracting elements over multiple lists? Terry Reedy <tjreedy@udel.edu> - 2011-11-07 19:06 -0500
      Re: Extracting elements over multiple lists? Peter Otten <__peter__@web.de> - 2011-11-07 19:33 +0100
      Re: Extracting elements over multiple lists? Jean-Michel Pichavant <jeanmichel@sequans.com> - 2011-11-07 19:51 +0100
      Re: Extracting elements over multiple lists? Dave Angel <d@davea.name> - 2011-11-07 15:06 -0500
      Re: Extracting elements over multiple lists? Laurent Claessens <moky.math@gmail.com> - 2011-11-08 08:07 +0100
      RE: Extracting elements over multiple lists? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2011-11-15 17:01 +0000
        Re: Extracting elements over multiple lists? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-15 22:21 +0000
      Re: Extracting elements over multiple lists? Dave Angel <d@davea.name> - 2011-11-15 13:17 -0500
      Re: Extracting elements over multiple lists? Chris Angelico <rosuav@gmail.com> - 2011-11-16 06:53 +1100
        Re: Extracting elements over multiple lists? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-15 22:25 +0000
          Re: Extracting elements over multiple lists? Chris Angelico <rosuav@gmail.com> - 2011-11-16 09:54 +1100
    Re: Extracting elements over multiple lists? Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-11-07 19:06 +0100

csiph-web