Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: MRAB Newsgroups: comp.lang.python Subject: Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?) Date: Thu, 26 Nov 2015 16:16:57 +0000 Lines: 34 Message-ID: References: <87d1v5emhl.fsf@elektro.pacujo.net> <564e6a62$0$1620$c3e8da3$5496439d@news.astraweb.com> <565592e9$0$1615$c3e8da3$5496439d@news.astraweb.com> <87k2p54tdr.fsf@elektro.pacujo.net> <565652e1$0$1619$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de sFkGULQ/02fYNdb+Ytqh2g9JKK9V8b+IwsebTeeMk9bg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'static': 0.03; 'used.': 0.05; 'definitions': 0.07; 'obsolete': 0.07; 'wednesday,': 0.07; 'statements': 0.09; 'vast': 0.09; 'python': 0.10; 'programs.': 0.11; 'languages.': 0.15; 'subject: \n ': 0.15; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; "isn't.": 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'needless': 0.16; 'received:192.168.1.4': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:?)': 0.16; 'wrote:': 0.16; 'language': 0.19; '>>>': 0.20; '2015': 0.20; 'trying': 0.22; "python's": 0.23; 'import': 0.24; 'written': 0.24; 'header:In- Reply-To:1': 0.24; "i've": 0.25; 'header:User-Agent:1': 0.26; 'define': 0.27; 'function': 0.28; 'really,': 0.29; "i'm": 0.30; 'mention': 0.30; 'received:84': 0.32; 'getting': 0.33; 'class': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'view,': 0.33; 'but': 0.36; 'too': 0.36; '(and': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'creation': 0.38; 'shared': 0.38; 'goes': 0.39; 'sure': 0.39; 'received:192': 0.39; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'ever': 0.60; 'your': 0.60; 'skip:u 10': 0.61; 'back': 0.62; 'here': 0.66; 'stated': 0.70; 'forth': 0.79; 'funny': 0.83; 'batchelder': 0.84; 'conservative': 0.84; 'execution.': 0.84; 'surface': 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=MbeRwMLf c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=EBOSESyhAAAA:8 a=IkcTkHD0fZMA:10 a=TaxKInEoAnnrPPdiEe4A:9 a=QEXdDO2ut3YA:10 X-AUTH: mrabarnett@:2500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99588 On 2015-11-26 12:53, BartC wrote: > On 26/11/2015 01:52, Ned Batchelder wrote: >> On Wednesday, November 25, 2015 at 8:23:36 PM UTC-5, BartC wrote: >>> On 26/11/2015 00:31, Steven D'Aprano wrote: > >>>> It really, truly isn't. Your viewpoint is clouded by too much immersion in >>>> crippled languages. *Old and obsolete versions* of crippled languages. >>>> Dynamic creation of functions goes back to the 1950s. > >>> It's funny then that the vast majority of top-level function definitions >>> I see in Python (and import and class statements too) are decidedly static. > >> I almost started to explain about how yes, Python is often written in >> conservative static ways. I was going to mention that a little dynamic >> nature goes a long way, and is never far from the surface in even the >> simplest Python programs. >> >> But I won't, because I'm not sure you're really interested. There's a >> pattern here of people trying to explain Python to you, and eventually, >> after many words, getting to some kind of shared understanding, only >> for you to shrug it all off as a fad, or pocket-lining, or needless >> complexity. > > I'm sorry if I've been misunderstood. > > I simply stated that Python's approach was novel. Steven D'Aprano then > responded by belittling my view, and effectively trashing every language > I've ever used. > [snip] Well, it's not /that/ new. Both Forth and PostScript define functions by execution.