Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Laura Creighton Newsgroups: comp.lang.python Subject: Re: What is a function parameter =[] for? Date: Fri, 27 Nov 2015 14:24:36 +0100 Lines: 23 Message-ID: References: <56550273$0$1585$c3e8da3$5496439d@news.astraweb.com> <5655f27b$0$1614$c3e8da3$5496439d@news.astraweb.com> <6imd5b9it55sucrcl95o95tppro7errfsi@4ax.com> <5657b30d$0$1600$c3e8da3$5496439d@news.astraweb.com> <5657c376$0$1618$c3e8da3$5496439d@news.astraweb.com> <5658533c$0$1591$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: news.uni-berlin.de 1PtcpuOh7bl91o6Nn1R/nAGIg9iETWBCZ0r9kaBjFGng== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'mrab': 0.05; '"as': 0.07; 'exist,': 0.07; 'pypy': 0.07; 'cc:addr:python-list': 0.09; 'instance.': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; '>on': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; "chris'": 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'quantum': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'to:addr:pearwood.info': 0.16; "to:name:steven d'aprano": 0.16; 'wrote:': 0.16; 'laura': 0.18; '>>>': 0.20; 'changes': 0.20; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; 'object.': 0.22; 'fri,': 0.27; 'object,': 0.27; 'argue': 0.29; 'preserve': 0.29; 'received:se': 0.29; 'url:wikipedia': 0.29; 'cc:no real name:2**1': 0.29; 'url:wiki': 0.30; 'another': 0.32; "d'aprano": 0.33; 'steven': 0.33; 'except': 0.34; 'could': 0.35; 'exist': 0.35; 'instance': 0.35; 'nov': 0.35; 'but': 0.36; 'url:org': 0.36; 'actions': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'charset:us-ascii': 0.37; 'mean': 0.38; 'url:en': 0.39; 'header:Message-Id:1': 0.61; 'soon': 0.65; 'guaranteed': 0.67; 'special': 0.73; 'header:In-reply-to:1': 0.84; 'mechanics': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openend.se; s=default; t=1448630680; bh=t9DMyonpnqbnwkBUpyZYVr4wNcpkDj12qPhW+KUjJkg=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=TJNS+B62GFROCEenTqEitT2kR+ZSJbj0TQ71NKSl6BxXwYUgqq2s9SpwbmSf2bAWf S2B087J1eJUWdeEYlCVBODu52lBbQdZzwnByWSYyaxYZLUCdDLvaFK4mggl28w2/ST yBD14FypiX9lHsPzUdwqUndsVSODmNvlKY/cYl7w= In-reply-to: <5658533c$0$1591$c3e8da3$5496439d@news.astraweb.com> Comments: In-reply-to "Steven D'Aprano" message dated "Fri, 27 Nov 2015 23:57:29 +1100." Content-ID: <28280.1448630676.1@fido> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Fri, 27 Nov 2015 14:24:40 +0100 (CET) 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:99642 In a message of Fri, 27 Nov 2015 23:57:29 +1100, "Steven D'Aprano" writes: >On Fri, 27 Nov 2015 01:56 pm, MRAB wrote: > >> On 2015-11-27 02:44, Steven D'Aprano wrote: > >>> The PyPy implementation has to take special actions to preserve the ID >>> across object recreations. That is what I mean by "faked". >>> >> You could argue that it _does_ continue to exist, it just changes its >> form... > >*Something* continues to exist, but it is no longer an object. > >I like Chris' analogy of it being like quantum mechanics -- the *object* >isn't guaranteed to exist except when you try to access it, until then you >don't know what form it will take at any instance. I think it's just another instance of Just-In-Time Manufacturing https://en.wikipedia.org/wiki/Just-in-time_manufacturing "As soon as you need a object, we'll have one ready". :) Laura