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: Wed, 25 Nov 2015 19:46:52 -0700 Lines: 27 Message-ID: References: <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> <56550273$0$1585$c3e8da3$5496439d@news.astraweb.com> <5655f27b$0$1614$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de WJSFNgbMddO5cCpqGZMwvQPiaHldoWIF/myhejuJBQJg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'cpython': 0.05; 'supported,': 0.07; 'python': 0.10; '2.7': 0.13; 'wed,': 0.15; 'thu,': 0.15; '(oracle': 0.16; '1:08': 0.16; 'nonetheless': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'tuple,': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; '>>>': 0.20; '2015': 0.20; '64-bit': 0.22; 'gcc': 0.22; 'dec': 0.23; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'chris': 0.26; 'message- id:@mail.gmail.com': 0.27; 'alan': 0.29; 'server': 0.34; 'received:google.com': 0.35; 'false': 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; 'say': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'anything': 0.38; 'to:addr:python.org': 0.40; 'still': 0.40; 'more': 0.63; '>>>>>': 0.66; '26,': 0.72; '2.5.3': 0.84; '2.7.8': 0.84; '7:25': 0.84; 'to:name:python': 0.84; '2014,': 0.91 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=LE7e+jMj522W1lVv9FhJX4ZepEk1/9uiMa87c7glJkY=; b=uWt/xB5FtZYNUY3gmTDltVzAjHSH/1/JeNNHn0cYWg3LaRaq257L5whkjjUWLGfJdX veNVo2GZAwc3bTdzH7pjE7b6dWmqJfpoLSY0MCsvFt9EXeiUYH4AOP+t1nCV1UafFQLT hm5GBcRbz2Cfpf4CWAUk10KEqD3VzPNbZQhnKRRKFVzo112WOtPzux7pmKwyALGKmub3 ArLkMIGvqMleVUYTjmVCx9x9s7yvgDNmLHjSfTCQzAC6gin/JyTuNql59UTgslX5VS+E ey6pORiDTKjjS/b6/d+xK7JOa4kajH9muw3xpl0M+6UxfbrPTW/0RkPPoYI/XGCGOPDt CRDw== X-Received: by 10.50.150.106 with SMTP id uh10mr798534igb.85.1448506051933; Wed, 25 Nov 2015 18:47:31 -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:99523 On Wed, Nov 25, 2015 at 7:25 PM, Chris Angelico wrote: > On Thu, Nov 26, 2015 at 1:08 PM, Alan Bawden wrote: >> (Note that nothing in the documentation I can find actually _guarantees_ >> that a Python implementation will only have one unique empty tuple, but >> I wouldn't be suprised if the following is nonetheless true in all >> current implementations: >> >> >>> tuple([]) is tuple([]) >> True >> >> ) > > Jython 2.5.3 (, Oct 8 2014, 03:39:09) > [OpenJDK 64-Bit Server VM (Oracle Corporation)] on java1.7.0_85 > Type "help", "copyright", "credits" or "license" for more information. >>>> tuple([]) is tuple([]) > False > > Python 2.7.8 (2.4.0+dfsg-3, Dec 20 2014, 13:30:46) > [PyPy 2.4.0 with GCC 4.9.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>>> tuple([]) is tuple([]) > False Well, he did say all "current" implementations. CPython 2.7 may still be supported, but that doesn't make it current. And anything at 2.5 is just archaic.