[Python-Dev] re: syntactic sugar idea for {static,class}methods (original) (raw)
James_Althoff@i2.com James_Althoff@i2.com
Tue, 12 Feb 2002 13:38:24 -0800
- Previous message: [Python-Dev] syntactic sugar idea for {static,class}methods
- Next message: [Python-Dev] SyntaxError tracebacks in 2.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I would think that specifying a list (as in [staticmethod]) would be very desirable so that you could do a sequence of transformations, not just one. Michael's examples seem to suggest elements of an Aspect-oriented approach to things. If you have several relevant "Aspect wrappers", then you might want to apply each cascaded in sequence. If, using previous examples, I want a "static" method that is also "memoized" and "SOAPed" I could write:
def mymethod(arg) [staticmethod,memoize,webmethod]:
or some such combination that is presumably well-defined.
Jim
- Previous message: [Python-Dev] syntactic sugar idea for {static,class}methods
- Next message: [Python-Dev] SyntaxError tracebacks in 2.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]