Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.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.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'referring': 0.07; 'python:': 0.09; 'used.': 0.09; 'times,': 0.14; 'cleaned': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'memory': 0.22; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'returned': 0.30; 'message- id:@mail.gmail.com': 0.30; 'concern': 0.31; 'object.': 0.31; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'one,': 0.35; 'subject:lists': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'object,': 0.36; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'new': 0.61; 'yourself': 0.78; 'batchelder': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=lMnq3UxyqV58fDVxYQjwB7L+tAB0lRTuNq2CGXvZf88=; b=FMvHkBUN/kxMQ/yXjC7WeaxsNjxVCRyPd/kjwYrZcuIRtC1e4cy38Qc792Ooufju14 puTcqm8o6/7iRQ2ywZqQImsJpRIPtLac7gpjpaKYvYSZ3QRwbtpGB1HLCfdJ1+OfBI1x NzrSWuIOpn3Asbim1LogNpktPayweqyicWBOUJaiIf74QgP7gw+1iu/Q02MIVbiPr3e4 wwO9eL/cpOA4IE2YeEsk5v8fnKOeC6/Df8tsx4G1U8cW/nhUn4GnPJWFs/mqQ1HjTiNY VWod3a1psTQq6YinbPgKQQm/l3t5/48N7/m/DMxiD+vmYkHrCecedDiEDA6q4CDsjeHJ 643A== MIME-Version: 1.0 X-Received: by 10.52.97.8 with SMTP id dw8mr5015764vdb.91.1366224143681; Wed, 17 Apr 2013 11:42:23 -0700 (PDT) In-Reply-To: <516EEBB2.1000503@nedbatchelder.com> References: <2rGdndNcINM-tvPMnZ2dnUVZ_jqdnZ2d@giganews.com> <2f8ccb0c-3fb5-4675-993a-4cd3d30dc3a1@googlegroups.com> <516EEBB2.1000503@nedbatchelder.com> Date: Thu, 18 Apr 2013 04:42:23 +1000 Subject: Re: a couple of things I don't understand wrt lists From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366224146 news.xs4all.nl 2280 [2001:888:2000:d::a6]:36170 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43773 On Thu, Apr 18, 2013 at 4:36 AM, Ned Batchelder wrote: > > On 4/17/2013 12:10 PM, 88888 Dihedral wrote: >> Well, a new object is returned and can be used. >> Then who is going to clean up the object when required? > > > This is a key thing to understand about Python: memory is managed > automatically, no one has to clean up the object. Once there are no names > referring to the object, it will be cleaned up automatically. Dihedral is a bot. An amusing one, at times, but not someone you need overly concern yourself with. :) ChrisA