Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!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.134 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.74; '*S*': 0.01; '22,': 0.09; 'classes.': 0.09; '9:20': 0.16; 'inconvenient': 0.16; 'new-style': 0.16; 'overriding': 0.16; 'side.': 0.16; 'subject:object': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'implemented': 0.33; 'skip:_ 10': 0.34; 'subject:the': 0.34; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'should': 0.36; 'implement': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'skip:* 10': 0.61; 'first': 0.61; 'such': 0.63; 'more': 0.64; 'delegate': 0.68; 'special': 0.74; 'delegated': 0.84; 'delegation': 0.84; 'troublesome': 0.91; '2013': 0.98 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=T9Jozh+Hq3g+IzbPIezAyVkA2M9eMPUGCJf550jdkXk=; b=yDfV1jRcL1F9dd5caX7ihd9miUqCrlVRa48t5dDsBX7h/7/wdtIXlnvah3x+l1yKkl GY98SYNIK7SdhMe2DqiM+QXEvcV+n8aegBCzvI6KqzeyI5TtZfPtM/iDoE7/vVMEDdHE Buu3xUX3/pKwhNwBEk6juPTcfwFrKC9ev83MOa5QFa/l4oB97ZMmPsbeVFFydV263LcO +hQCO2Z/42xUKR3i9Rpx99BH1UMqIgleAgKfc+xHZMShRhTgH1+acUFnBQoP0CrO8/13 q3eSxDUD0WLBU/XxXk3r/ZJUAMSucx6WqIsM36GwWBDVOpK46NygT5iplU2ebnQQvHyz EN/w== X-Received: by 10.66.146.9 with SMTP id sy9mr22899021pab.16.1371961671082; Sat, 22 Jun 2013 21:27:51 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <51c66962$0$29999$c3e8da3$5496439d@news.astraweb.com> References: <15ba0011-bbf1-42f7-b3ea-1c1d4b70e56b@googlegroups.com> <51c66962$0$29999$c3e8da3$5496439d@news.astraweb.com> From: Ian Kelly Date: Sat, 22 Jun 2013 22:27:10 -0600 Subject: Re: What is the semantics meaning of 'object'? 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371961680 news.xs4all.nl 15917 [2001:888:2000:d::a6]:55651 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48976 On Sat, Jun 22, 2013 at 9:20 PM, Steven D'Aprano wrote: > * on the down side, automatic delegation of special double-underscore > methods like __getitem__ and __str__ doesn't work with new-style classes. I actually consider that an up side. Sure it's inconvenient that you can't delegate all such methods at once just by overriding __getattribute__, but it would be more troublesome to *accidentally* implement such methods because you implemented __getattribute__. And then there are methods that really should not be delegated in the first place, like __del__.