Decorating one method of a class C with another method of class C?
Dan Stromberg
drsalists at gmail.com
Fri Jun 6 20:14:54 EDT 2014
More information about the Python-list mailing list
Fri Jun 6 20:14:54 EDT 2014
- Previous message (by thread): http.server.BaseHTTPRequestHandler basic auth logout? Django authentication system for REST interface?
- Next message (by thread): Decorating one method of a class C with another method of class C?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is there a way of decorating method1 of class C using method2 of class C? It seems like there's a chicken-and-the-egg problem; the class doesn't seem to know what "self" is until later in execution so there's apparently no way to specify @self.method2 when def'ing method1.
- Previous message (by thread): http.server.BaseHTTPRequestHandler basic auth logout? Django authentication system for REST interface?
- Next message (by thread): Decorating one method of a class C with another method of class C?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list