Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #42042 > unrolled thread

RE: Decorator help

Started by"Joseph L. Casale" <jcasale@activenetwerx.com>
First post2013-03-27 20:41 +0000
Last post2013-03-27 20:41 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  RE: Decorator help "Joseph L. Casale" <jcasale@activenetwerx.com> - 2013-03-27 20:41 +0000

#42042 — RE: Decorator help

From"Joseph L. Casale" <jcasale@activenetwerx.com>
Date2013-03-27 20:41 +0000
SubjectRE: Decorator help
Message-ID<mailman.3828.1364416912.2939.python-list@python.org>
> 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web