Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: What is a function parameter =[] for? Date: Fri, 20 Nov 2015 14:32:51 +0000 (UTC) Lines: 8 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> <9v7u4b1i0433efj1ineabik9p0e4ke0qop@4ax.com> X-Trace: news.uni-berlin.de wtdXx13eDWIov7fqX6hdIQWSRuEnBB9tTCUlKm/8Uiag== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'lookup': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'anyway).': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'substitute': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'parser': 0.22; 'header:User-Agent:1': 0.26; '(which': 0.26; 'header:X -Complaints-To:1': 0.26; 'primary': 0.31; 'received:comcast.net': 0.33; 'surprised': 0.33; 'behind': 0.35; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'doing': 0.38; 'no,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'ever': 0.60; 'effective': 0.63; 'dennis': 0.91; 'scenes': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: c-68-39-146-59.hsd1.in.comcast.net User-Agent: slrn/1.0.1 (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:99153 On 2015-11-20, Dennis Lee Bieber wrote: > You can substitute list() where ever you use [] with no > effective change in the semantics. (I wouldn't be surprised if the parser > was doing that behind the scenes anyway). No, because list() does a name lookup on "list" (which is the primary issue behind every request for frozendict/frozenset literals)