Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.032 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:Python': 0.06; '"a"': 0.16; '"b"': 0.16; 'andreas': 0.16; 'bound.': 0.16; 'bye,': 0.16; 'pointers,': 0.16; 'pointers.': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'pointed': 0.19; 'written': 0.21; '>>>': 0.22; 'memory': 0.22; 'header:User-Agent:1': 0.23; 'integer': 0.24; 'pointer': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'am,': 0.29; 'thus': 0.29; 'another': 0.32; 'knows': 0.35; 'good.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'received:10': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'dave': 0.60; 'name': 0.63; 'places': 0.64; 'talking': 0.65; 'containing': 0.69; 'angel': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=bk5eEIsPCdAuL4jezy9tnL3l0I+7vmkOVlFxwQHPgok=; b=LmRji3XGf6XNZ+JibTxt/gFnVL74R1s6L0qbXntpur4/DCtimgd0EPMgpQj2oqNJUn vTYAYRiWmUCMDl00n2n+kM+1/+4fjHuy1zJonGFjb9oFTployk1BWgvkwcWzVOQkHl2Q 2uWtI5ameD5wh7UWFZLlX68GpL3DdJFwBEjBkRBMrtehUoUcKgCYLdR1Oonn6LtZvCw1 +jjH3pw4yrl3Fxmf7tdI6kolPe/8KIwN4V1WLZZsgE9PmIGzj+c8GqLcGbWwhkzVcOcP 3fHWvb+KooJ/1USzMA4+KyAPXGgnXxxfT586L2Mu1DdqdohDxP6h9en34SXna3uUgWwp yasw== X-Received: by 10.14.215.197 with SMTP id e45mr12488310eep.130.1371394931464; Sun, 16 Jun 2013 08:02:11 -0700 (PDT) Date: Sun, 16 Jun 2013 17:02:09 +0200 From: Andreas Perstinger User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: python-list@python.org Subject: Re: OT: C vs Python terminology References: <2bc90d3b-09c2-4315-9357-ff7f039465e0@googlegroups.com> <51b926a3$0$29997$c3e8da3$5496439d@news.astraweb.com> <51ba6e92$0$29997$c3e8da3$5496439d@news.astraweb.com> <51bb454c$0$29997$c3e8da3$5496439d@news.astraweb.com> <51BD9FDC.8050006@gmail.com> <51BDB5B6.6020900@davea.name> In-Reply-To: <51BDB5B6.6020900@davea.name> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 49 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371394941 news.xs4all.nl 15963 [2001:888:2000:d::a6]:35545 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48458 On 16.06.2013 14:55, Dave Angel wrote: > On 06/16/2013 07:22 AM, Andreas Perstinger wrote: >> On 16.06.2013 08:32, Denis McMahon wrote: >>> C: ^^^^^^^^^ >>> >>> int a, b; >>> b = 6; >>> a = b; >>> >>> In C, this places the numeric value 6 into the memory location identified ^^^^^^^^^^^^^ >>> by the variable "b", >> >> so far so good. >> >>> then copies the value from the location pointed to by "b" into the >>> location pointed to by "a". >> >> Wrong. Neither "a" nor "b" are pointers, thus they don't point to a >> memory location. >> This part should be written as >> "then copies the value at the location identified by "b" to the location >> identified by "a". > > But it doesn't. It binds b to the same object to which a is currently > bound. Are you aware that Denis was talking about the behaviour of C in the above quote? >>> b is a pointer to a memory location containing the value 6 >> > a is a pointer to another memory location also containing the value 6 >> >> Again, neither "a" nor "b" are pointers. >> "b" is the name of a memory location containing the integer value 6. >> "a" is the name of another memory location containing the integer value 6. >> > > Not even close. If you don't like the terms "bound" or "points", the > perhaps you'd be happy with "b" is the name that currently knows how to > find an int object containing 6. That object has no name, and never > will. And it can exist for a long time with no names directly bound to it. Again, Denis was talking about C. Bye, Andreas