Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'languages,': 0.03; 'subject:Python': 0.05; 'python': 0.08; 'am,': 0.12; 'closures': 0.16; 'then?': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'written': 0.19; 'cc:no real name:2**0': 0.21; 'maybe': 0.21; 'header:In-Reply-To:1': 0.22; 'feb': 0.22; 'feature.': 0.23; 'sat,': 0.25; 'function': 0.27; 'asking': 0.28; 'message- id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.29; 'received:209.85.210.46': 0.30; 'received:mail- pz0-f46.google.com': 0.30; 'chris': 0.30; 'languages': 0.32; 'there': 0.33; 'cc:2**1': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'skip:" 10': 0.37; 'another': 0.37; 'subject:with': 0.37; 'received:209.85': 0.38; 'could': 0.38; 'some': 0.38; 'think': 0.38; 'received:209': 0.39; 'put': 0.40; 'more': 0.61; 'share': 0.66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=EFlzfsl2hrwu8cVGmD5ef2bKwguGFN1STN0dpnuJ6Gc=; b=i0PQn4r44mtC7bwAa7GpWVTBnukohlFyA5+L94TuiUjTinqDc7KxGov+F3Gsb0G6tr 36dvAYXf6zMfC1p8IcvrXiePZGCsR1WY9cG4uPKJ8DdeQZE+oBSAjc612DGAjT6os+UG bC2xTvBuGu24kWjVwkDXU0m+IzgtVXlA1DY/o= MIME-Version: 1.0 In-Reply-To: References: From: Devin Jeanpierre Date: Sat, 4 Feb 2012 17:52:45 -0500 Subject: Re: Common LISP-style closures with Python To: Arnaud Delobelle Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Antti J Ylikoski , python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1328396008 news.xs4all.nl 6880 [2001:888:2000:d::a6]:44063 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19864 On Sat, Feb 4, 2012 at 5:58 AM, Arnaud Delobelle wrote: > I think what Chris asking is: what is the feature of Common-Lisp > closures that Python closures share but other languages don't? > > I think what he is implying is that there is no such feature. =C2=A0Pytho= n > closures are no more "Common-Lisp-style" than they are "Scheme-style" > or "Smalltalk-like" or any other language-like. "No such feature"? What's that nonlocal thing then? The above function could not be written that way in Python 2. Of course maybe we want to put this feature in another category, but anyway, the function couldn't be written in some languages, even though they have closures. -- Devin