Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.038 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'creation,': 0.09; 'false.': 0.09; 'part,': 0.09; 'sentence': 0.09; 'changes': 0.15; '"every': 0.16; 'coordinates': 0.16; 'created;': 0.16; 'creation.': 0.16; 'dice': 0.16; "object's": 0.16; 'sorts': 0.16; 'ties': 0.16; 'language': 0.16; 'wrote:': 0.18; 'value.': 0.19; 'feb': 0.22; 'memory': 0.22; 'fairly': 0.24; 'header:In-Reply- To:1': 0.27; "doesn't": 0.30; 'subject:list': 0.30; 'message- id:@mail.gmail.com': 0.30; 'object.': 0.31; 'fri,': 0.33; 'not.': 0.33; 'definition': 0.35; 'equal': 0.35; 'objects': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; '14,': 0.36; 'skip:4 10': 0.37; 'two': 0.37; 'problems': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'anything': 0.39; 'does': 0.39; 'quote': 0.39; 'to:addr:python.org': 0.39; 'address.': 0.39; 'skip:u 10': 0.60; 'first': 0.61; 'address': 0.63; 'more': 0.64; 'detail.': 0.68; 'physical': 0.72; 'address,': 0.75; 'introduce': 0.78; 'concept.': 0.84; 'space-time': 0.84; 'states,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=v35JSThEEyXbVcYikVYaGm6CCByMS4FORGfW6yeTKS8=; b=LvWjT2h9td9lFeumzOzefYtrq5vwDu7VKeQcIA2UfkwN79ODvIGP6OFXQJ8r5z8kOO ls5YTZgkqAiwDUVIj4x7iXU3DVbCiAINcfanI8r2y5/W34UoiEG2NZvlgzCaoi5Xb4+4 klBw2f1vuq5U9oIIfFjUBbaT58jYCcmaOOM8hIBako/yzZBBdV+qrBre32iVQ61R5ZBQ KG9RV6IwMLTJL7Hjo1BuZp1pQIcEJwzdj6yHFIpJ7uAUL2eLdWPQT5Hhu+aISwhcp8ol UEr3ggTR1E8W4dyUJmYY7mo0XtGFLz+tnlPoSGIKMhLGFqDy5BBrAj6wdMKM0Nkiv46r J4jg== X-Received: by 10.68.75.9 with SMTP id y9mr13457365pbv.61.1392441676137; Fri, 14 Feb 2014 21:21:16 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <13208de8-0f85-4e60-b059-dc087c8fda41@googlegroups.com> <917ede6d-db7c-4a8c-8203-27677283776b@googlegroups.com> <871tz5piy0.fsf@elektro.pacujo.net> <87vbwho1i0.fsf@elektro.pacujo.net> <87mwhtnzdu.fsf@elektro.pacujo.net> <59c876d3-02f5-4f5a-8728-a5098472e03d@googlegroups.com> <6e96ba97-8ad0-4dad-9d11-b27bf9b237d0@googlegroups.com> From: Ian Kelly Date: Fri, 14 Feb 2014 22:20:35 -0700 Subject: Re: Explanation of list reference To: Python Content-Type: text/plain; charset=ISO-8859-1 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392441685 news.xs4all.nl 2832 [2001:888:2000:d::a6]:56249 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66369 On Fri, Feb 14, 2014 at 9:24 PM, Rustom Mody wrote: > In the case of physical objects like dice there is a fairly > unquestionable framing that makes identity straightforward -- > 4-dimensional space-time coordiantes. If the space-time coordinates of > 2 objects are all equal then the objects are identical, else not. > > Now we analogize the space-time identity of physical objects to > computer identity of computer objects (so-called) and all sorts of > problems ensue. > > To start with we say two objects are identical if they have the same > memory address. This is false. It happens to hold for CPython, but that's an implementation detail. The definition of object identity does not depend on memory address. It also doesn't have anything to do with space-time coordinates. The concept of object identity is an abstraction, not an analogy from physics. The language reference states, "Every object has an identity, a type and a value. An object's identity never changes once it has been created; you may think of it as the object's address in memory." Okay, so that quote does bring up memory address, but in my interpretation that's just an analogy to introduce the concept. The more important part of that sentence is the first part, which ties an object's identity to its creation. If two objects share the same creation, then they're the same object.