Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ben Finney Newsgroups: comp.lang.python Subject: Re: What is a function parameter =[] for? Date: Fri, 27 Nov 2015 12:40:06 +1100 Lines: 27 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de +kpVCYG6mvmKEIdCnxSPWwOEGMG4PBPNW6HnQ/6HpdIQ== Cancel-Lock: sha1:RjP2ir48m8Fyrde9jjLc8HkamVc= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'pypy': 0.07; 'exiting': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'thu,': 0.15; 'expected,': 0.16; 'rather,': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'numerical': 0.18; 'refers': 0.18; 'language': 0.19; '2015': 0.20; '(the': 0.22; 'seems': 0.23; 'unlike': 0.23; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'object,': 0.27; "i'm": 0.30; "d'aprano": 0.33; 'rule': 0.33; 'steven': 0.33; 'definition': 0.34; 'nov': 0.35; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'expect': 0.37; 'received:org': 0.37; 'anything': 0.38; 'or,': 0.38; 'sure': 0.39; 'expressed': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'identify': 0.61; 'real': 0.62; 'here.': 0.62; 'you.': 0.64; 'compliant': 0.66; 'percent': 0.66; "they're": 0.66; '_o__)': 0.84; 'farrance': 0.84; 'received:125': 0.84 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) 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:99615 Steven D'Aprano writes: > On Thu, 26 Nov 2015 09:34 pm, Dave Farrance wrote: > > > > (Conversely, I see that unlike CPython, all PyPy's numbers have > > unchanging ids, even after exiting PyPy and restarting, so it seems > > that PyPy's numerical ids are "faked".) > > I'm pretty sure that they are faked. It's still not been expressed what “fake” refers to here. Or, rather, what “real” thing was being expected, and how these don't qualify. The object IDs are real IDs, they identify the object, they're not pretending to be anything other than object IDs, they are perfectly compliant with the language definition and all the documentation. What is fake? What “real” thing was expected, and *why* was that expected? -- \ “Do unto others twenty-five percent better than you expect them | `\ to do unto you. (The twenty-five percent is [to correct] for | _o__) error.)” —Linus Pauling's Golden Rule | Ben Finney