Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!rt.uk.eu.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.nosignal.org!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'output': 0.04; 'attribute.': 0.09; 'defined.': 0.09; 'inherited': 0.09; 'self.data': 0.09; 'subject:using': 0.09; 'dec': 0.15; 'code?': 0.16; 'userdict': 0.16; 'wrote:': 0.17; 'pointed': 0.17; 'occurs': 0.22; 'branch': 0.23; 'header:In-Reply-To:1': 0.25; 'message- id:@mail.gmail.com': 0.27; 'steven': 0.29; 'succeed': 0.29; 'class': 0.29; 'could': 0.32; '11,': 0.33; 'legacy': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'does': 0.37; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'first': 0.61; 'dict,': 0.84; 'to:name:python': 0.84 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=qiHG2U5WE//S+h/l/ClTzgNPbyP2LitlCDKY0NCYzkI=; b=BtxMSmHW8EvQHEE1A7EZgPjV7dI6VZO3V4Wl2O38TVHDXYLel4PRsANTDbZ4RS5+jX z3tlvAuRUmQYrs9NQixzo8hGemskXQbBX8IV3mQ8/dplHY/m1/70W6GAKBTjlnUyGK85 q8yJuqdN2ywKXmILLofjD0HJF5C29RN7bqUAtn2ATOki+ZMhxfxNMkStKGVixHipQ/uB X0D7gxykAfqaNLgzPrfHANFtcZk65UMRKigvtlRphtoPnPuqeX89e6SiRNAjrbGpkuQM I0KYQ3iIJphhOfpkCHbtkQEEqk1Y58J4+/vBz+mdwLJswKCMr1NqnRhNhKQohw5lY5H4 uiiw== MIME-Version: 1.0 In-Reply-To: References: <201212102248.50766.dave@cinege.com> <201212111557.24851.dave@linkscape.net> From: Ian Kelly Date: Tue, 11 Dec 2012 15:20:09 -0700 Subject: Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1355264442 news.xs4all.nl 6856 [2001:888:2000:d::a6]:39490 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34653 On Tue, Dec 11, 2012 at 2:53 PM, Ian Kelly wrote: > and then I ran the examples, and the output was unchanged. As Steven > pointed out, I don't see how that first branch could succeed anyway, > since self.data is never defined. It occurs to me that the UserDict class does have a data attribute. Perhaps there was another version of Thesaurus that inherited from UserDict instead of dict, and so the access to .data is a holdover from legacy code?