Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42042
| 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 | <jcasale@activenetwerx.com> |
| 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" <jcasale@activenetwerx.com> |
| To | "python-list@python.org" <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 | <CAEk9e3qgtZPXRjtD8cQaGNS_vTJRFrqRKnc3T438wWwBhC0Z-g@mail.gmail.com> |
| In-Reply-To | <CAEk9e3qgtZPXRjtD8cQaGNS_vTJRFrqRKnc3T438wWwBhC0Z-g@mail.gmail.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3828.1364416912.2939.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
> So decorators will never take instance variables as arguments (nor should they, since no instance > can possibly exist when they execute). Right, I never thought of it that way, my only use of them has been trivial, in non class scenarios so far. > Bear in mind, a decorator should take a callable as an argument (and any number of 'static' parameters > you want to assign it), and return another callable. Got it, and thanks for the detail as well! jlc
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
RE: Decorator help "Joseph L. Casale" <jcasale@activenetwerx.com> - 2013-03-27 20:41 +0000
csiph-web