Path: csiph.com!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'url:pycon': 0.08; 'creighton': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'variables': 0.15; 'example?': 0.16; 'i.e.,': 0.16; 'pointer,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:reference': 0.16; 'subject:versus': 0.16; 'thread.': 0.16; 'wrote:': 0.16; 'case.': 0.18; 'laura': 0.18; 'language': 0.19; '2015': 0.20; 'fairly': 0.22; 'recognize': 0.22; 'referring': 0.22; 'sep': 0.22; 'sorry,': 0.22; '(or': 0.23; 'ignored.': 0.23; 'sat,': 0.23; "haven't": 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'followed': 0.27; 'reflect': 0.27; 'actual': 0.28; '-0700,': 0.29; 'finds': 0.29; 'books': 0.30; 'code': 0.30; 'mention': 0.30; 'skip:[ 10': 0.31; 'url:python': 0.33; 'message-id:@gmail.com': 0.34; 'structure': 0.34; 'gives': 0.35; 'could': 0.35; 'instead': 0.36; 'subject:" ': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'expect': 0.37; 'say': 0.37; 'received:org': 0.37; '12,': 0.37; 'doing': 0.38; 'names': 0.38; 'mean': 0.38; 'why': 0.39; 'data': 0.39; 'whatever': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'address': 0.61; 'provide': 0.61; 'saturday,': 0.63; 'to,': 0.63; 'complete': 0.63; 'dont': 0.64; 'pictures': 0.75; 'received:89': 0.80; '>how': 0.84; 'tell)': 0.84; 'url:2007': 0.84; 'utc+5:30,': 0.84; 'favour': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Akira Li <4kir4.1i@gmail.com> Subject: Re: Terminology: "reference" versus "pointer" Date: Sat, 12 Sep 2015 23:13:24 +0300 References: <14afe27e-0bd5-410f-8e64-0f31d496ebf2@googlegroups.com> <55F36B4C.9020007@gmail.com> <1442016698.95299.381478313.2487CA0E@webmail.messagingengine.com> <85mvws6z45.fsf_-_@benfinney.id.au> <85io7g6xy4.fsf@benfinney.id.au> <85egi46wng.fsf@benfinney.id.au> <1a1a1f6a-27ce-4c1b-807a-43eabaa04abb@googlegroups.com> <04ca9d7c-d02b-4329-bd94-4d18d86b3edf@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain X-Gmane-NNTP-Posting-Host: 89.169.229.68 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:8n+N0CsAgmFbZE19tFT17ofq4Bg= 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: , Newsgroups: comp.lang.python Message-ID: Lines: 44 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442088898 news.xs4all.nl 23810 [2001:888:2000:d::a6]:52417 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96458 Rustom Mody writes: > On Saturday, September 12, 2015 at 11:26:18 PM UTC+5:30, Akira Li wrote: >> Rustom Mody writes: >> >> > On Saturday, September 12, 2015 at 8:11:49 PM UTC+5:30, Laura Creighton wrote: >> >> In a message of Sat, 12 Sep 2015 05:46:35 -0700, Rustom Mody writes: >> >> >How about lay-English ontology in which "point to" and "refer to" are fairly >> >> >synonymous? >> >> >> >> This I have found is important in teaching, which is why I favour 'bind' >> >> and 'binding' -- rather than pointer, pointer, refer to, referring. >> > >> > Well we can play humpty dumpty and make any word mean whatever we like. >> > However if you are a teacher you will recognize a need for pictures. >> > And (as far as I can tell) "Random832" finds a need for the box-n-arrow >> > diagrams of classic data-structure books >> >> Speaking of pictures and names in Python >> http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html#other-languages-have-variables > > Yeah cute > [I think I will even use these in my classes] > However they dont address the issue that I think random832 is > referring to. The pictures despite their simplicity reflect the actual model that Python language uses i.e., any deviations are an implementation artifact and may be ignored. > viz. I have two variables (or names!) say a and b which look the same >>>> a > [[1,2],[1,2]] >>>> b > [[1,2],[1,2]] > And yet doing >>>> a[0][0] = "Oops!" > gives a data structure one "Oops!" > whereas doing it to b mysteriously gives 2 Sorry, I haven't followed the whole thread. Could your provide a complete code example? Mention what you expect to happen and what happens instead in your case.