Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'subject:Python': 0.06; 'memory.': 0.07; 'string': 0.09; '(aka': 0.09; 'modulo': 0.09; 'objects,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'all...': 0.16; 'fine.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; "object's": 0.16; 'pointer,': 0.16; 'programmers.': 0.16; 'python;': 0.16; 'underlying': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'pointer': 0.24; 'cc:2**0': 0.24; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'piece': 0.31; 'implemented': 0.33; 'copying': 0.34; 'could': 0.34; 'definition': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'done': 0.36; 'implement': 0.38; 'pm,': 0.38; 'how': 0.40; 'course.': 0.60; 'strictly': 0.61; 'name': 0.63; 'connecting': 0.64; 'subject:The': 0.64; 'subjectcharset:utf-8': 0.72; 'physical': 0.72; 'foreign': 0.74; 'subject:have': 0.80; 'dry': 0.84; 'thing,': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=wPDwKPTRk3JRN5JtnN3h4Nc0oNviblCo8P0RYyfKgAM=; b=S3lyin/aoYMLSZdqNR1ny++YUfPiSvNf3FnOM+Y2YCNUaUOyxBwDH75h/vt0dAbW9J nHCYuKQRpBcRz4HihNOZAmgETDTdcT88sIiS59BJ32yYDkPMapZo+ATqdyI0U+RZggEL 021RBCI2LgaAkE+wBeyyumngFisN7ZJYmfytRez9w3UJTa/MWEJp4YulQbkNMleOyBy9 V7C6Ak+cfYij15oOpSQt71J8dtZZaxgsFn9lI7cgAH7OdZuplIf32URBvmQgfiMNpdQZ Mm6ma1SdCgvX89RvvHZn3oJH/XUgBCr9oooSFO/HMWz76Lr/R9KUmqs9JasaT72N5NXS r17Q== MIME-Version: 1.0 X-Received: by 10.220.44.20 with SMTP id y20mr18492vce.60.1399536889003; Thu, 08 May 2014 01:14:49 -0700 (PDT) In-Reply-To: <536B3B2F.8060200@m4x.org> 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> <85eh05cdjx.fsf@benfinney.id.au> <536B3B2F.8060200@m4x.org> Date: Thu, 8 May 2014 18:14:48 +1000 Subject: =?UTF-8?B?UmU6IFRoZSDigJxkb2VzIFB5dGhvbiBoYXZlIHZhcmlhYmxlcz/igJ0gZGViYXRl?= From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1399536892 news.xs4all.nl 2885 [2001:888:2000:d::a6]:54534 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71086 On Thu, May 8, 2014 at 6:07 PM, Joseph Martinot-Lagarde wrote: > For me, names bound to values is the same concept as pointer pointing to > memory. bar = foo copies the pointer and not the underlying memory. This is > not a foreign concept to C programmers. > That is how it's implemented in CPython, after all... modulo the whole refcounting thing, of course. But that's not strictly a part of the definition of Python; it's just implementation. You could implement Python on pencil-and-paper (aka a dry run), and as long as you have a concept of names that reference objects, it's going to be fine. The "reference" might be done with a physical piece of string connecting a Post-It note with a name to a box with the object's state, meaning there's no way of copying any pointer, and it's still Python. ChrisA