Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42042 > unrolled thread
| Started by | "Joseph L. Casale" <jcasale@activenetwerx.com> |
|---|---|
| First post | 2013-03-27 20:41 +0000 |
| Last post | 2013-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.
RE: Decorator help "Joseph L. Casale" <jcasale@activenetwerx.com> - 2013-03-27 20:41 +0000
| From | "Joseph L. Casale" <jcasale@activenetwerx.com> |
|---|---|
| Date | 2013-03-27 20:41 +0000 |
| Subject | RE: 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
Back to top | Article view | comp.lang.python
csiph-web