Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'subject:Getting': 0.09; 'received:80.91': 0.16; 'received:80.91.229': 0.16; 'received:dip.t-dialin.net': 0.16; 'received:gmane.org': 0.16; 'received:list': 0.16; 'received:t-dialin.net': 0.16; 'wrote:': 0.17; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; 'looks': 0.31; 'should': 0.35; 'to:addr:python-list': 0.35; 'does': 0.36; 'subject:with': 0.37; 'subject:: ': 0.37; 'to:addr:python.org': 0.39; 'received:org': 0.39; 'header:Received:5': 0.39; 'skip:n 10': 0.63; 'otten': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Peter Otten <__peter__@web.de> Subject: Re: Getting lazy with decorators Date: Tue, 26 Jun 2012 09:03:45 +0200 Organization: None References: <9d0c01f4-4430-4a45-8776-20d8dede9e14@googlegroups.com> <513d25ea-e977-4b84-b388-bfb23c171aae@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: p5084be63.dip.t-dialin.net User-Agent: KNode/4.7.3 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 1340694230 news.xs4all.nl 6909 [2001:888:2000:d::a6]:50284 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24462 Peter Otten wrote: >>>helpfunc = getattr(self, "do_" + name[5:]).help > > i. e. it looks for getattr(self, "do_help") which does exist and then Sorry that should be getattr(self, "do_done").