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: OK 0.069 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'python': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'new- style': 0.16; 'wrote:': 0.17; 'feb': 0.19; 'trying': 0.21; 'header :In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'class': 0.29; 'sense': 0.31; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'does': 0.37; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'more': 0.63; '2013': 0.84; '4:29': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=e8TdvzK4DKStrhRuxNPFRQwCuawwwD2beQj0p5y7bt8=; b=uSy8YeS1KuDe93thHj2U1VjLGKIugmEFv2yJuyWPO7wp3GDcoS4Wrlre1u2S/YcVSj DeWDS9fnJBQBjdoc8D3bUxsnyhECNRBMNiZhFC7Y2OeiC+n4pfja+Zr3uC7FGTKyYqzz oZbRk57vGQc7sQV+uemdERfyEFxP8J3E0wLud5OgR8MaYtNTFde8rOFsT2Ncf3ieAvhu PaXAQXRYusP9ex3jPfxSb4eyNXZrTMfNdPF0agR38tIJuJR7u2VQS+VCEgw4JPm+U8lu at6LFHiMBsNlzNK+mWB9+B8AQ/rMRojH8ENVGEUGwNMWb95NdTHaTB/63ODxgOOn2S+O MQ2A== MIME-Version: 1.0 X-Received: by 10.224.18.205 with SMTP id x13mr14562833qaa.9.1360026050141; Mon, 04 Feb 2013 17:00:50 -0800 (PST) In-Reply-To: References: <095a0432-f8a4-40b4-96ed-1588896fba66@googlegroups.com> <510f3a91$0$29866$c3e8da3$5496439d@news.astraweb.com> <863c89b0-2125-4525-8ad8-1111b0a6beae@googlegroups.com> Date: Tue, 5 Feb 2013 12:00:50 +1100 Subject: Re: __getattr__ Confusion From: Chris Angelico To: python-list@python.org 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: 1360026058 news.xs4all.nl 6857 [2001:888:2000:d::a6]:33307 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38156 On Tue, Feb 5, 2013 at 4:29 AM, Saul Spatz wrote: > class Adder(): # python 2.7, classic class > > Why does this work for __add__ and not for __getattr__? Is this a case of "why bother trying to understand it, just use new-style classes"? They do make more sense in many ways. ChrisA