Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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: UNSURE 0.243 X-Spam-Level: ** X-Spam-Evidence: '*H*': 0.60; '*S*': 0.09; 'explicitly': 0.05; 'python': 0.11; 'ignoring': 0.16; 'inheritance': 0.16; 'subject:object': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'library': 0.18; 'code,': 0.22; 'header:User-Agent:1': 0.23; 'least': 0.26; 'header:In-Reply-To:1': 0.27; '3.2': 0.31; 'changed.': 0.31; "d'aprano": 0.31; 'directly,': 0.31; 'overhead': 0.31; 'steven': 0.31; 'class': 0.32; 'subject:the': 0.34; 'false': 0.36; 'method': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'release': 0.40; 'ian': 0.60; "you're": 0.61; 'save': 0.62; 'name': 0.63; 'kind': 0.63; 'saw': 0.77; 'pardon': 0.84; 'received:195.238': 0.84; 'received:195.238.6': 0.84; 'received:belgacom.be': 0.84; 'received:isp.belgacom.be': 0.84; 'inheritance,': 0.93; '2013': 0.98 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak8DAJVMx1Fbtrj4/2dsb2JhbAANTrEyjx2CZwMBgRODEwQBAQEEOEARCxgJFg8JAwIBAgFFEwgChUUIgh+nPIkqiAeOcGYWg00Dkl2BFINSlFY Date: Sun, 23 Jun 2013 21:33:02 +0200 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: What is the semantics meaning of 'object'? References: <15ba0011-bbf1-42f7-b3ea-1c1d4b70e56b@googlegroups.com> <51c66962$0$29999$c3e8da3$5496439d@news.astraweb.com> <20130623133546.GA2308@capricorn> <51c723b4$0$29999$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <51c723b4$0$29999$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 25 Jun 2013 14:50:05 +0200 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: 1372164608 news.xs4all.nl 15978 [2001:888:2000:d::a6]:34405 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49154 Op 23-06-13 18:35, Steven D'Aprano schreef: > On Sun, 23 Jun 2013 10:15:38 -0600, Ian Kelly wrote: > >> If you're worried about efficiency, you can also explicitly name the >> superclass in order to call the method directly, like: >> >> A.__init__(self, arg) > > Please don't. This is false economy. The time you save will be trivial, > the overhead of inheritance is not going to be the bottleneck in your > code, and by ignoring super, you only accomplish one thing: > > - if you use your class in multiple inheritance, it will be buggy. Which is why I don't understand that the python standard library still contains that kind of code. At least it did in 3.2 and I saw nothing in the 3.3 release notes that would make me suspect this has changed. -- Antoon Pardon