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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'answering': 0.09; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'gonna': 0.16; 'mutable': 0.16; 'presume': 0.16; 'protecting': 0.16; 'sure.': 0.16; 'variables,': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'header:User-Agent:1': 0.23; 'specify': 0.24; 'question': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "i'm": 0.30; 'asked': 0.31; 'that.': 0.31; 'are.': 0.31; 'depth': 0.31; 'implied': 0.31; "can't": 0.35; 'except': 0.35; 'good.': 0.35; 'but': 0.35; 'keyword': 0.36; 'subject:?': 0.36; 'wrong': 0.37; 'too': 0.37; 'list.': 0.37; 'easily': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'even': 0.60; 'analyze': 0.60; 'everybody': 0.60; 'tell': 0.60; "you're": 0.61; 'email addr:gmail.com': 0.63; 'skip:n 10': 0.64; 'doable': 0.84; 'wanting': 0.93 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Sat, 29 Jun 2013 16:03:35 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Closures in leu of pointers? References: <2a2072e3-4b12-4ada-872c-1240d2379928@googlegroups.com> <51cf2b49$0$29999$c3e8da3$5496439d@news.astraweb.com> <2f5e7801-a4cd-4d01-a1e7-7f67bca18199@googlegroups.com> In-Reply-To: <2f5e7801-a4cd-4d01-a1e7-7f67bca18199@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372543422 news.xs4all.nl 15888 [2001:888:2000:d::a6]:49948 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49468 On 06/29/2013 01:20 PM, cts.private.yahoo@gmail.com wrote: > exactly that. Without wanting to analyze it in too much depth now, I > would want a local keyword to allow me to know I was protecting my > variables, and a way to specify other scopes, without so much implied > scoping in non-intuitive ways... The technical thing you are trying to accomplish, is, as far as I know, not easily doable in Python, except if you use a mutable object like a list. > > Now everybody is gonna tell me how wrong I am, but you asked what I > want, and that's what keeps aggrevating me with python. I presume you're answering the question of "what is it you're trying to do." Can't be sure. But chances are good. Far be it from me to tell you how wrong you are. I'm still not even sure what you're trying to do ultimately.