Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ian Kelly Newsgroups: comp.lang.python Subject: Re: What is a function parameter =[] for? Date: Fri, 20 Nov 2015 09:18:44 -0700 Lines: 9 Message-ID: References: <564dbe6b$0$1610$c3e8da3$5496439d@news.astraweb.com> <564df258$0$1604$c3e8da3$5496439d@news.astraweb.com> <564e71f6$0$1619$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de f8nia1MuOrNT7pV7v5h4tA9WXfE1vo4gNiWcQOwEGvGQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'value,': 0.03; 'variable,': 0.07; 'mutable': 0.09; 'itself.': 0.11; "isn't.": 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; '2015': 0.20; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'fri,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'probably': 0.31; 'problem': 0.33; 'list': 0.34; 'received:google.com': 0.35; 'nov': 0.35; 'list,': 0.36; 'received:209.85': 0.36; '(and': 0.36; 'assigned': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'display': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'to:addr:python.org': 0.40; 'some': 0.40; '20,': 0.66; 'here': 0.66; 'talking': 0.67; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=45mYmQofosnIdtakk13SATGKVLcFqkaz3Y5i0FnfipE=; b=VqbKwrdd1SmHnYSjForvor3zvyS4ExFTew+cqV6TxLlpcautJkFaEqER0lfrHzHOmW iu+IQAZmfe8kaUBesQz3Jv83PmSKtzMb7EprpY2YzVsvfinGqtcNrf+uLk+euliGj9qr vWkn/MC/iYZCkR+Bh8pc6YZrO4UzVbeM8yXvhh4y6gKNHINYt47jJgvTI8XGz6nLxOli 7Rtp9XOaxGsp1a3QBPgcjLhjHmE9N2mn+JiNGQ/PyX/ZEzZK9GBKr3V488rp/n7v2KYy 5GKUeg2CWjpTivP3V7gmjIDOCA49+m/QLlmMjiH1NDyZnZIjG0rzqBl5lojGhx3UtvjZ aZyg== X-Received: by 10.50.43.129 with SMTP id w1mr2605727igl.93.1448036364665; Fri, 20 Nov 2015 08:19:24 -0800 (PST) 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:99162 On Fri, Nov 20, 2015 at 5:39 AM, BartC wrote: > * The persistent nonsense that somehow [] is mutable (what happens is that > [] is assigned to a variable, and /that/ is mutable) (And I will probably > get some flak now because 'assign' and 'variable' are meaningless in > Python!) I think the problem here is that you're talking as if [] is a unique value, which it isn't. [] is a list display that *constructs* a list, not a list itself.