Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder3.xlned.com!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'parameters': 0.04; 'argument': 0.05; 'assign': 0.07; 'variables': 0.07; 'subject:help': 0.08; 'arguments': 0.09; 'decorator': 0.09; 'mind,': 0.09; 'callable': 0.16; 'callable.': 0.16; 'it),': 0.16; 'received:172.18.0': 0.16; 'to:name:python-list@python.org': 0.22; 'decorators': 0.24; 'non': 0.24; 'possibly': 0.26; 'header:In- Reply-To:1': 0.27; 'another': 0.32; 'thanks': 0.36; 'should': 0.36; 'detail': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:unknown': 0.61 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=SNukfclIDc7GjKe+LHtSoPUBJt/gHPuqMk7EpfoOdzs= c=1 sm=1 a=P90J6pEA2ccA:10 a=7PYXob_7ZXMA:10 a=BLceEmwcHowA:10 a=8nJEP1OIZ-IA:10 a=xqWC_Br6kY4A:10 a=oNw28mxuUhXRB3mVwYQ4Ag==:17 a=xr-TtxNmMqe12UrwMX4A:9 a=wPNLvfGTeEIA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 From: "Joseph L. Casale" To: "python-list@python.org" Subject: RE: Decorator help Thread-Topic: Decorator help Thread-Index: AQHOKyIIGDgWeiUVSEqnSm5Oit30Vpi6YuYA//+dOUM= Date: Wed, 27 Mar 2013 20:41:48 +0000 References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.18.0.4] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364416912 news.xs4all.nl 6844 [2001:888:2000:d::a6]:41226 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42042 >=A0So decorators will never take instance variables as arguments (nor sho= uld they, since no instance=0A= > can possibly exist when they execute).=0A= =0A= =0A= Right, I never thought of it that way, my only use of them has been trivial= , in non class=A0scenarios=A0so far.=0A= =0A= =0A= > Bear in mind, a decorator should take a callable as an argument (and any = number of 'static' parameters=0A= > you want to assign it), and return another callable.=0A= =0A= =0A= Got it, and thanks for the detail as well!=0A= jlc=