[Python-Dev] Class decorators (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 30 00:42:57 CEST 2006
- Previous message: [Python-Dev] Class decorators
- Next message: [Python-Dev] Class decorators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Fred L. Drake, Jr. wrote:
class Foo: """Documentation is good."""
@class implements(IFoo)
That's an interesting idea. It could be applied to functions, too:
def myfunc(myargs): """Documentation is hoopy" @def biguglydecorator(longconvolutedarglist)
Someone is going to object that the evaluation time and environment of the decorator is screwy. But I don't care. :-)
Greg
- Previous message: [Python-Dev] Class decorators
- Next message: [Python-Dev] Class decorators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]