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: Tue, 24 Nov 2015 14:33:17 -0700 Lines: 17 Message-ID: References: <8601c9af-a7d9-4642-ba1c-8edd1e4c3390@googlegroups.com> <56546985.8060704@rece.vub.ac.be> <56547337.4000709@rece.vub.ac.be> <56547C53.8030407@rece.vub.ac.be> <5654864E.2070906@rece.vub.ac.be> <56549324.8020607@rece.vub.ac.be> <56549F15.40206@rece.vub.ac.be> <5654B037.6020107@rece.vub.ac.be> <5654CE93.8080900@rece.vub.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de D4SCEn29r5Rz625OTodIFwFW3TfL5XMXU8g7WTA5uMuA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'received:209.85.223': 0.03; 'compiler': 0.05; 'differently': 0.07; ':-)': 0.12; '24,': 0.16; '42,': 0.16; '42.': 0.16; 'literal,': 0.16; 'literals': 0.16; 'negation': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'byte': 0.18; 'language': 0.19; '>>>': 0.20; '2015': 0.20; 'constant': 0.22; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'message-id:@mail.gmail.com': 0.27; 'code': 0.30; 'picking': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'nov': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'to:addr:python.org': 0.40; 'entire': 0.61; 'matter': 0.63; 'detail.': 0.66; '13)': 0.84; 'pardon': 0.84; 'schreef': 0.84; 'to:name:python': 0.84; 'hand,': 0.97 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=/XwkB5N3uP4WJLIceBXZ8/D3+l/HGYSeo1DcPjfIH2M=; b=l513T5ZSBlIXFxlJraVknme+3sh5cJ+Uix5CP1mFQiMs47kIKeMBCi4m0PXa7gQ7Py iU5VclEFfgN2j/6s9E9z+527bOYzGSoaD9e08hxZyfuIXyo5JOtQ6JjXhlRiGmY40VAV m9w9vALGJqlrM3Het6pHWdGvFKDGqfBQNzOoRdNYhicz4L2NmHk6darVlaVS050ML2Jn omi5vFCBNj9ecj0JJbnwQeG98O/mB9iJub6NY6NL7ARgOZrNfUTPorCcdKjF+7q9Sn/2 JBtWsfozutaIljpZ1S7bGWmHB7fSLfahr3eyXadOUO+VaZoBAXfdzIyZsjpPwStfZOe0 s2sg== X-Received: by 10.107.164.154 with SMTP id d26mr32662465ioj.111.1448400836773; Tue, 24 Nov 2015 13:33:56 -0800 (PST) In-Reply-To: <5654CE93.8080900@rece.vub.ac.be> 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:99399 On Tue, Nov 24, 2015 at 1:54 PM, Antoon Pardon wrote: > Op 24-11-15 om 20:15 schreef Ian Kelly: > >>> But no matter what you want to call it. The dis module shows that >>> -42 is treated in exactly the same way as 42, which is treated >>> exactly the same way as () or as (5, 8, 13) which is treated >>> differently from [] or [5, 8, 13]. >> >> This is an implementation detail. The compiler would also be free to >> compile -42 into byte code as the negation of the constant 42. That 42 >> is a literal, on the other hand, is part of the language >> specification. > > I think you are picking nits. Yes. This entire subtopic about literals is picking nits. :-)