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.076 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'false.': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'inaccessible': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'restrictions': 0.19; 'feb': 0.22; 'code,': 0.22; 'memory': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; '15,': 0.26; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; 'addresses': 0.33; 'fri,': 0.33; "can't": 0.35; 'definition': 0.35; 'objects': 0.35; 'but': 0.35; 'received:google.com': 0.35; '14,': 0.36; 'otherwise.': 0.36; 'possible': 0.36; 'two': 0.37; 'being': 0.38; 'pm,': 0.38; 'anything': 0.39; 'does': 0.39; 'address.': 0.39; 'ian': 0.60; 'simply': 0.61; 'address': 0.63; 'more': 0.64; 'different': 0.65; 'detail.': 0.68; 'moves': 0.84; 'space-time': 0.84; '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=9JRvBr+AWvX42KDFZbE6XGYZAwfkM6oJRRzuVwRgShE=; b=qQm/wYu9TBh6/KBtfIDZU1N+52PCIKYavp9KIFOjAKkXwy/NKybImXWPH0ZzB9ie1L DXNiwOv/q0Wl6zhZ9dkncGc5nuyztKX2aIDV2i03T7dcGNoAAePxOVTzz1iV2FrOYmSd /NdPS9Fy6TsUx5ttDWHGpRd2RWtGmc0EvwMgd6wXdmxKOTH+IckJ3HRkXGfZGzJLmwX2 7nLGqStd5WxOPdv5C+Yp8anI9i5z4Mrfy0XTDCkGgFfhYGzkK0XmrZIGIltb9rp4BKI8 qWrdLrNJJ43AZ43JQnVMLqoL+TRR/nm+dg6VxufjD+76iPN4Dmfbig0uFI+J6hUAjZnm poaw== MIME-Version: 1.0 X-Received: by 10.66.102.39 with SMTP id fl7mr13314198pab.43.1392442295730; Fri, 14 Feb 2014 21:31:35 -0800 (PST) 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> Date: Sat, 15 Feb 2014 16:31:35 +1100 Subject: Re: Explanation of list reference From: Chris Angelico Cc: Python 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392442298 news.xs4all.nl 2844 [2001:888:2000:d::a6]:33349 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66371 On Sat, Feb 15, 2014 at 4:20 PM, Ian Kelly wrote: > On Fri, Feb 14, 2014 at 9:24 PM, Rustom Mody wrote: >> 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. With the restrictions of computer memory, I suspect that two objects with the same address must be identical, simply because it's not possible for it to be otherwise. However, the converse isn't necessarily true; two objects may have the same identity while being at different addresses (or, more likely, one object may occupy different memory addresses over time, if the gc moves it around). But since memory addresses are completely inaccessible to Python code, we can't say whether two objects have the same address. ChrisA