Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!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.163 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.72; '*S*': 0.05; 'feature.': 0.09; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; "object's": 0.16; 'of)': 0.16; 'usage,': 0.16; 'wrote:': 0.18; 'memory': 0.22; 'instance,': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'ensure': 0.60; 'most': 0.60; 'different': 0.65; 'jobs': 0.68; 'influence': 0.74; 'jul': 0.74; 'destruction,': 0.84; 'role(s)': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=r7r8tScVPsFt8Z2OvEJL2+V0rAwRFLqSIMkLxXCY+8o=; b=W8PMyHLmWuTdhPswvSxHFLBo/dytrz0s4hJXtRq4avmH2DmP9sPG0XReppc2XKTZlu QVNnRsQzaK49BhWLqCUHR3Ctn74k1GSdRDsReqZFsRAwQZ/bk+MCcArP66MIjQXNjCRI vzW86l7GIQJq8qT9rdglVjeJyqkt4wkXuEuZLmToWAWEAFBEyGKNxc/z6QxhQCa11yMw PSnwurfm84V7EEI6RNYxjjiD+0Dfy4Aj60A74v6fNIALSVUMtXQWNjDwcCfW7YKE00pe H4QSwYzWOBp4cwJUirmbQh2rL68wAkdrYdvl+/LSB4prbmpXwEnDq0rjvBERJYFjMsNG Dwxw== MIME-Version: 1.0 X-Received: by 10.58.187.4 with SMTP id fo4mr6821694vec.55.1373031831247; Fri, 05 Jul 2013 06:43:51 -0700 (PDT) In-Reply-To: References: <51d4eb9c$0$29999$c3e8da3$5496439d@news.astraweb.com> <51d508ed$0$6512$c3e8da3$5496439d@news.astraweb.com> Date: Fri, 5 Jul 2013 23:43:51 +1000 Subject: Re: Default scope of variables 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373031839 news.xs4all.nl 15977 [2001:888:2000:d::a6]:50333 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49984 On Fri, Jul 5, 2013 at 11:24 PM, Neil Cerutti wrote: > Python provides deterministic destruction with a different > feature. You mean 'with'? That's not actually destruction, it just does one of the same jobs that deterministic destruction is used for (RAII). It doesn't, for instance, have any influence on memory usage, nor does it ensure the destruction of the object's referents. But yes, it does achieve (one of) the most important role(s) of destruction. ChrisA