Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python,': 0.01; 'subject:two': 0.07; 'subject:parameters': 0.09; 'pm,': 0.10; 'received:209.85.214.174': 0.14; 'received:mail- iw0-f174.google.com': 0.14; 'wrote:': 0.14; 'angelico': 0.16; 'expressions,': 0.16; 'on).': 0.16; 'subject:function': 0.16; 'tue,': 0.17; 'header:In-Reply-To:1': 0.21; 'code': 0.24; 'message-id:@mail.gmail.com': 0.28; 'language.': 0.28; 'received:209.85.214': 0.28; 'functions.': 0.29; 'instead': 0.29; 'for,': 0.30; 'if,': 0.30; 'nested': 0.30; "skip:' 10": 0.32; 'to:addr:python-list': 0.33; 'chris': 0.34; 'daniel': 0.34; 'example,': 0.35; 'supporting': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.37; 'subject:: ': 0.38; 'subject: (': 0.39; 'received:209': 0.39; 'map': 0.39; 'to:addr:python.org': 0.39; 'simply': 0.60; 'best': 0.60; 'your': 0.60; '31,': 0.65; 'due': 0.67; 'isolated': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=ZWKPZiNAYYAZ4ffG0Z+M/ApPI9BXSpxVrPEKrwEQtJQ=; b=Xd0p26DEBveyowXB/k2zXZAj5c3PR3ms5tHwv7+s5TmdFCSuItC5blF9ulufm8ONA2 +0IMF3iNzLh25r3Fm3fXvJMZEqgk/wjU36mKdPlzErXmrqIY8w/2vLbsZUZTqw5i54VY g+2dJwavr6k8/TMmu99b0nw5qD94rBxF5r13Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=FIy3XkjzDgGvamk78cOUvVtpdT1L6NHUCEA8Z4RlAAcCnrxWOGgXRvE5itL0jnkNAv cMQeUqHwYF/U3TUM1RnOaSWL0PxETYfZZwuNPiwgZWnH/lCLeWiPO4Oq8M9SiApxiJ2Y BM3/YbDSUeHySgvvBcpQ7HOM84dNri07jsK2c= MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 31 May 2011 14:18:49 +1100 Subject: Re: scope of function parameters (take two) From: Daniel Kluev To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 16 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306811932 news.xs4all.nl 49038 [::ffff:82.94.164.166]:51900 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6698 On Tue, May 31, 2011 at 2:05 PM, Chris Angelico wrote: > Infinitely-nested scoping is simply one of the casualties of a > non-declarative language. Well, this is not accurate, as you can have 'infinitely-nested scoping' in python, in form of nested functions. For example, you can use map(lambda x: , list_of_x), and you will have your isolated scopes. Although due to lambdas supporting only expressions, following this style leads to awkward and complicated code (and/or instead if, map instead for, and so on). -- With best regards, Daniel Kluev