Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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.027 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'definitions': 0.07; 'definition,': 0.09; 'sentence': 0.09; 'wrong,': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; "wouldn't": 0.14; '"but': 0.16; '*any*': 0.16; 'eat': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'logical.': 0.16; "object's": 0.16; 'utterly': 0.16; "where's": 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'saying': 0.22; 'cc:addr:python.org': 0.22; 'logical': 0.24; 'now?': 0.24; 'cc:2**0': 0.24; 'define': 0.26; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'chris': 0.29; 'am,': 0.29; "doesn't": 0.30; 'statement': 0.30; 'message- id:@mail.gmail.com': 0.30; 'that.': 0.31; 'are.': 0.31; 'comparison': 0.31; "d'aprano": 0.31; 'steven': 0.31; '"the': 0.34; 'sense': 0.34; 'could': 0.34; 'definition': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'addresses,': 0.36; 'false': 0.36; "he's": 0.36; 'being': 0.38; 'anything': 0.39; 'address.': 0.39; 'how': 0.40; 'skip:u 10': 0.60; 'course': 0.61; 'simply': 0.61; "you're": 0.61; 'making': 0.63; 'address': 0.63; 'more': 0.64; 'mar': 0.68; 'anything.': 0.68; 'guaranteed': 0.75; 'address,': 0.75; 'premise': 0.84; 'premises': 0.84; 'returns.': 0.84; 'sitting': 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=3T21vyq4lZLbd10IztRgAsuzsK06W3kz6d6r8F1VB7s=; b=P+dDY3CtdTtOqpyY5HiMyo7t/1OC/Ff6n8cMqKScRaSHM/3uRdACDYe4xQgTg2qpzC 146nfRoVLjM5ceL7P1fpuhnSOX6O7Shgpmt3Suik3R3lNgorFGsY2uuFk9+hedg6Q8I2 JZ1LAB4i5V2+8HMR+3jqN1No0Iuj9zM0rfQY4f7UDK2THcluiXC+xuSOUNtIvR7s43D8 UP4BMrAHArHgIkSesUGrAhoT//v5CBFbqYUQwMmvQIcjU/M3XJfo10HX42x+4qE+pIxR 0y0/ws56olaeMnK7pZEU9lhrfaXSRBSTjh5fyFmVVAsvkecPhAbNt/rOZ82yestQTgdN hR2A== MIME-Version: 1.0 X-Received: by 10.68.247.6 with SMTP id ya6mr10605330pbc.45.1394067010213; Wed, 05 Mar 2014 16:50:10 -0800 (PST) In-Reply-To: <5317c2d5$0$29985$c3e8da3$5496439d@news.astraweb.com> References: <53144e8d$0$2149$426a74cc@news.free.fr> <1d1dfa1b-b715-4d8f-9c12-f0d3dc1a22c9@googlegroups.com> <85ppm3httu.fsf@benfinney.id.au> <20140303155112.46e34ff8@bigbox.christie.dr> <87siqy7whs.fsf@elektro.pacujo.net> <53155c15$0$2923$c3e8da3$76491128@news.astraweb.com> <164d209c-ba5e-449f-bc25-c27ebfb1fc0f@googlegroups.com> <5316b0dc$0$2923$c3e8da3$76491128@news.astraweb.com> <53176cfe$0$29985$c3e8da3$5496439d@news.astraweb.com> <87mwh475bc.fsf@elektro.pacujo.net> <87bnxk73gb.fsf@elektro.pacujo.net> <5317c2d5$0$29985$c3e8da3$5496439d@news.astraweb.com> Date: Thu, 6 Mar 2014 11:50:10 +1100 Subject: Re: Reference 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: 42 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1394067013 news.xs4all.nl 2942 [2001:888:2000:d::a6]:46747 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67901 On Thu, Mar 6, 2014 at 11:35 AM, Steven D'Aprano wrote: > On Thu, 06 Mar 2014 08:26:22 +1100, Chris Angelico wrote: > >> Where's the complaints about circularity now? You're saying "But of >> course id() returns the address, as long as we define the address as >> 'whatever id() returns'.". Unimpeachably logical and utterly unhelpful. > > That last sentence is wrong. There is nothing logical about just making > up arbitrary definitions in this way. He could invent *any* definition, > each more ridiculous than the last: I mean logical in the sense of pure logic. If all spam is edible-food And if this-can is spam Then this-can is edible-food The opening premise is false (I wouldn't want to eat a punctured can that's been sitting around for a few months), but it's still perfectly logical. The conclusion is guaranteed to be true as long as the premises are. In that sense of the word, the statement is indeed logical. That doesn't stop it from being wrong, but it is logical. If the 'is' comparison is reflexive, And if three is four, Then four is three. Perfectly logical. He's saying that the address of an object is simply "whatever id() returns for that object". Since Python doesn't currently have any other concept of object addresses, that definition isn't in conflict with anything. Then he says, look! the id() function returns the object's address. Well, duh, that's how you defined the address. It's logical. Of course it returns "the address", since "the address" has been defined as what it returns. But it doesn't achieve anything to prove that. ChrisA