Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!newsfeeder.ewetel.de!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'attribute': 0.07; 'steve': 0.09; 'wrapper': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'suggest': 0.14; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'func': 0.16; 'gilles': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'decorators': 0.24; 'cheers,': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; '(like': 0.30; 'strongly': 0.30; 'operations': 0.35; 'received:com.au': 0.36; 'charset:us-ascii': 0.36; 'received:211': 0.38; 'supporting': 0.39; 'even': 0.60; 'reserved': 0.61; 'content-disposition:inline': 0.62; 'to:addr:gmail.com': 0.65; 'periodically': 0.68; 'areas.': 0.84; 'ice': 0.91 Date: Sat, 12 Oct 2013 08:38:02 +1100 From: Cameron Simpson To: Gilles Lenfant Subject: Re: Skipping decorators in unit tests MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <70786d98-7f0a-4ff0-8ab5-1098c931c8a4@googlegroups.com> User-Agent: Mutt/1.5.21 (2010-09-15) References: <70786d98-7f0a-4ff0-8ab5-1098c931c8a4@googlegroups.com> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=YYGEuWhf c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=LcaDllckn3IA:10 a=MIEZmskQDU0A:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=AS59is4VRK8A:10 a=pGLkceISAAAA:8 a=CYXlKw6kCi_42D4MzokA:9 a=CjuIK1q_8ugA:10 a=MSl-tDqOz04A:10 a=PKC5o44-6WIA:10 a=r4goYPlsmMgA:10 Cc: python-list@python.org 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1381527487 news.xs4all.nl 15887 [2001:888:2000:d::a6]:51169 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:56714 On 11Oct2013 02:37, Gilles Lenfant wrote: > * Adding an "__original__" attribute to the wrapper func in the decorators of my own Just one remark: Call this __original or _original (or even original). The __x__ names are reserved for python operations (like __add__, supporting "+"). Cheers, -- Cameron Simpson I very strongly suggest that you periodically place ice packs over the abused areas. - Steve Garnier