Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Antoon Pardon Newsgroups: comp.lang.python Subject: Re: I'm wrong or Will we fix the ducks limp? Date: Thu, 9 Jun 2016 13:08:32 +0200 Lines: 23 Message-ID: References: <57569f6a$0$11124$c3e8da3@news.astraweb.com> <5756BED8.2000304@rece.vub.ac.be> <1465313620.1380508.630546953.7F7E755D@webmail.messagingengine.com> <5757CF15.4010002@rece.vub.ac.be> <5757dbaf$0$1615$c3e8da3$5496439d@news.astraweb.com> <5757E840.80805@rece.vub.ac.be> <5757FB1B.5000502@rece.vub.ac.be> <5758292E.2020600@rece.vub.ac.be> <57591FC2.6080408@rece.vub.ac.be> <57593D17.807@rece.vub.ac.be> <57594E30.7060603@rece.vub.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de s0x73I99lAFrzI1QSqlIGwLphw+n+jLU6lVu08dJdcCA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'received:134': 0.05; 'variables,': 0.09; 'python': 0.10; 'variables': 0.15; 'received:ac.be': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'language': 0.19; 'all,': 0.20; 'function,': 0.22; 'seems': 0.23; 'references': 0.23; 'implemented': 0.24; 'header:In-Reply- To:1': 0.24; 'all.': 0.24; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'not.': 0.27; 'question': 0.27; 'that.': 0.30; 'received:be': 0.30; "can't": 0.32; 'implement': 0.32; 'topic': 0.32; 'useful': 0.33; 'instead': 0.36; 'there': 0.36; 'to:addr :python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'means': 0.39; 'does': 0.39; 'subject:the': 0.39; 'to:addr:python.org': 0.40; 'bring': 0.62; 'different': 0.63; 'schreef': 0.84 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArIIAHYeUleGuA9G/2dsb2JhbABehFsBvRCGEgKCAAEBAQEBAWaEbQEBBCNVEQsaAgUWCwICCQMCAQIBRRMIAogrsU2NPoNbAQEIAiWBAYUmhE2FDII1glkBBJhFgVeMTYkzhWmPUlSDcIp+AQEB User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <57594E30.7060603@rece.vub.ac.be> X-Mailman-Original-References: <57569f6a$0$11124$c3e8da3@news.astraweb.com> <5756BED8.2000304@rece.vub.ac.be> <1465313620.1380508.630546953.7F7E755D@webmail.messagingengine.com> <5757CF15.4010002@rece.vub.ac.be> <5757dbaf$0$1615$c3e8da3$5496439d@news.astraweb.com> <5757E840.80805@rece.vub.ac.be> <5757FB1B.5000502@rece.vub.ac.be> <5758292E.2020600@rece.vub.ac.be> <57591FC2.6080408@rece.vub.ac.be> <57593D17.807@rece.vub.ac.be> Xref: csiph.com comp.lang.python:109730 Op 09-06-16 om 12:48 schreef BartC: > > What does it matter? > > If swap() can be implemented via such a function, then it means that > the language has such capability, which can be useful in different > scenarios. > > If it can't, then the language hasn't. > > Python doesn't have it so it can't implement swap like that. > > There's no need to bring references into it at all. Whether a language can implement a swap procedure like that is not the same question as whether the language variables are references or not. Since the topic was whether or not python has reference variables, is seems there is no need to bring this swap procedure into it at all, instead of turning it around and pretending it was about the swap procedure.