Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Mark H Harris Newsgroups: comp.lang.python Subject: Re: The =?UTF-8?B?4oCcZG9lcyBQeXRob24gaGF2ZSB2YXJpYWJsZXM/4oCdIGQ=?= =?UTF-8?B?ZWJhdGU=?= Date: Fri, 09 May 2014 17:34:17 -0500 Organization: Aioe.org NNTP Server Lines: 26 Message-ID: <536D57E9.5080801@gmail.com> References: <235C4BFA-9770-481A-9FCF-21C3F036769C@gmail.com> <5368681D.8070602@islandtraining.com> <85zjiuea37.fsf_-_@benfinney.id.au> <8738gmxgay.fsf@elektro.pacujo.net> <87tx91warf.fsf@elektro.pacujo.net> <536add6b$0$29965$c3e8da3$5496439d@news.astraweb.com> NNTP-Posting-Host: RbLuqvdjwUNhJiyJQaji5Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.python:71199 On 5/7/14 8:27 PM, Steven D'Aprano wrote: >> In almost every other language you know A and B each "contain" by >> reference (and almost always by static type) macTruck. But NOT python. > > Nor Javascript, Ruby, Perl, PHP, Lua, or (I think) Lisp or Java. To > mention only a few. > > I think it is easy to exaggerate the difference between Python and > "almost every other language". Python's name binding model is very common > amongst dynamically typed languages, and there are many dynamically typed > languages. Then we don't need a discussion. Why are new Python coders 'always' confused by this question of variable (name value) vs. {name: object} model of Python? The reason I suggest is that the person has a preconceived idea of what 'variable' means, and they then attempt to apply their conception of variable on to Python in some way ending in a surprise. We need a way to speak about Pythons name object model to avoid this confusion. marcus