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.081 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.01; 'explicit': 0.07; 'declaration': 0.16; 'definition.': 0.16; 'reedy': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'passes': 0.24; 'required.': 0.27; 'header :In-Reply-To:1': 0.27; 'function': 0.29; 'message- id:@mail.gmail.com': 0.30; 'beginning': 0.33; 'received:google.com': 0.35; 'subject:?': 0.36; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'skip:u 10': 0.60; 'simply': 0.61; 'kept': 0.65; '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:from:date:message-id:subject:to :content-type; bh=QUo3cpPES1fHszv2Er4smhCGuFbd4Xj963/V0AWX3ng=; b=oom591t3TLVDOiHuGw/BnXVM+Fzs/b2OLPWD5n1l6+4goJGDBPOkcHghKbAkcwMHAJ YetL0SekYmEnIrmazQT9YnRDGnSTiuBzbhRnu1XKI2zzm+6/lYN6Rz7Ior1ma7q1HOTf Yp3YM8joEcEBc+J7JOBq6KSOy6neeFSyt5GNcixIEd+/AXucoG0KVv5ZOn/E6zw6zt+3 An6fFD/JMT8+/DWCx782JYyCY8e3KfYef72nQwoynvXyIaLfqCuMUlhlmrg06rNyS/i6 /vAdBmfBbnNK7BYU9w7brQEaS0g4XjZr7ja3GZi6wh+EJhKJRjl90xyo1nO7jdyKBWby eevg== X-Received: by 10.66.164.232 with SMTP id yt8mr17417266pab.21.1372540911141; Sat, 29 Jun 2013 14:21:51 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <2a2072e3-4b12-4ada-872c-1240d2379928@googlegroups.com> <51cf2b49$0$29999$c3e8da3$5496439d@news.astraweb.com> <2f5e7801-a4cd-4d01-a1e7-7f67bca18199@googlegroups.com> <51cf3695$0$29999$c3e8da3$5496439d@news.astraweb.com> From: Ian Kelly Date: Sat, 29 Jun 2013 15:21:11 -0600 Subject: Re: Closures in leu of pointers? To: Python 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: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372540921 news.xs4all.nl 16005 [2001:888:2000:d::a6]:37936 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49465 On Sat, Jun 29, 2013 at 2:53 PM, Terry Reedy wrote: > # The alternative for either program or people is a 1-pass + backtracking > process where all understandings are kept provisional until the end of the > body and revised as required. 2 passes are simpler. Or simply an explicit declaration of scope at the beginning of the function definition.