Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'algorithm': 0.04; 'list?': 0.07; 'permitted': 0.07; 'reason,': 0.07; 'subject:help': 0.08; 'classes.': 0.09; 'terminated': 0.09; 'cc:addr:python-list': 0.11; 'exactly?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'inheritance': 0.16; 'itself,': 0.16; 'principled': 0.16; 'subject:object': 0.16; 'component': 0.16; 'wrote:': 0.18; 'work,': 0.20; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'resolution': 0.29; 'dec': 0.30; 'returned': 0.30; 'message-id:@mail.gmail.com': 0.30; 'alan': 0.31; 'class': 0.32; 'subject:the': 0.34; 'computing': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'ordered': 0.36; 'done': 0.36; "didn't": 0.36; 'method': 0.36; 'list': 0.37; 'pm,': 0.38; 'rather': 0.38; 'does': 0.39; 'how': 0.40; 'impact': 0.61; 'believe': 0.68; 'subject:base': 0.84; 'to:none': 0.92; '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:date:message-id:subject:from:cc :content-type; bh=DI/PMLdyzANbcrJT5vW9xxaqL33TLE73pASyF254QJc=; b=NiN9fL9vEWokfgmFlIjU9tNUh0atG7kmcn1lnQQR6mdUze3mZgKwUHFuL/60vcSWb9 zaEHqiWBnjDPVEgRNm78vHwFUS8TMJ6EcUv6SdoNoxQG40J+R/5A5QxVaUVRfKsZrKGp iZOS7nyBtn/bhD/EZ8sFhLXE3+rCMBolAr3Gvpyb2t4NTk6P9g93p1xYXlsXSPs42g2R Vh96+be050os2nHc1VldDI4Q6konsMtwD8Fl5Jwy/LKEhgXcmVyB4eflJBceD8dn9mhf /SwTM17lAxCL/Vcbhex3CFx2evzsus/FLQd0FrWXmv1SBNxgdZOYB2hChuGn70MAxsQx yWBQ== MIME-Version: 1.0 X-Received: by 10.68.236.133 with SMTP id uu5mr2770804pbc.153.1386574762075; Sun, 08 Dec 2013 23:39:22 -0800 (PST) In-Reply-To: References: <52a52b98$0$2762$c3e8da3$76491128@news.astraweb.com> <52a558c2$0$2762$c3e8da3$76491128@news.astraweb.com> Date: Mon, 9 Dec 2013 18:39:21 +1100 Subject: Re: interactive help on the base object 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386576267 news.xs4all.nl 2919 [2001:888:2000:d::a6]:34969 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61368 On Mon, Dec 9, 2013 at 6:31 PM, Alan Bawden wrote: > I don't believe that this was done for any deep principled reason, but > rather it was just permitted because the algorithm for computing method > resolution order didn't actually care whether there were inheritance > cycles -- it still terminated and returned an ordered list of component > classes. How does that work, exactly? How do you have a class inherit (ultimately) from itself, and how does that impact the component class list? ChrisA