Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: The =?utf-8?Q?=EF=BF=BD?= debate Date: Sat, 10 May 2014 11:21:54 +0300 Organization: A noiseless patient Spider Lines: 26 Message-ID: <87vbterql9.fsf@elektro.pacujo.net> References: <235C4BFA-9770-481A-9FCF-21C3F036769C@gmail.com> <8738gmxgay.fsf@elektro.pacujo.net> <87tx91warf.fsf@elektro.pacujo.net> <85eh05cdjx.fsf@benfinney.id.au> <87ha50hagu.fsf@elektro.pacujo.net> <8738gkh42a.fsf@elektro.pacujo.net> <8538gkaxr8.fsf@benfinney.id.au> <536c1b2e$0$29965$c3e8da3$5496439d@news.astraweb.com> <536d8208$0$29980$c3e8da3$5496439d@news.astraweb.com> <536dd9cb$0$29980$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="13033"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Y4nQ/n6w7ydGwUR2zAlqq" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:Ux0TZ4uKKKagIvEYf31Pe0ibWh4= sha1:9zHVLLW/Tp5q0fLHQgtppE0pxcs= Xref: csiph.com comp.lang.python:71236 Chris Angelico : > On Sat, May 10, 2014 at 5:48 PM, Steven D'Aprano > wrote: >>> https://en.wikipedia.org/wiki/Assignment_(computer_science) >>> >>> Go ahead, start an edit war at that page over its use of "variable". :) >>> Right there it talks about copying values into variables. So if Python >>> has no variables, then either that article is inappropriate, or Python >>> has no assignment either. >> >> Python assignment doesn't copy values. > > So either the article is wrong, or Python doesn't have assignment. > Which is it? You can understand copying more liberally: assignment -- 0-level copy shallow copy -- 1-level copy deep copy -- infinite-level copy Real programs occasionally need 2-level or n-level copies. Marko