From: itsme213 Date: 2004-12-01T04:52:47+09:00 Subject: Re: [OFF] Python 2.4 released > > (ruby does/has?)5 PEP 318: Decorators for Functions and Methods > > Ruby has this implicitly, because its object model is far more > consistent. The only thing that may improve this is an RCR that > makes it easier to deal with custom decorators by having def return > the Symbol of the method name. Probably :) A convenient decorator syntax would be very nice. Also, I believe Python manipulates the method as an object. I don't think manipulating a symbol (without the context of the class in which that symbol serves to name a method) can be equivalent. Maybe def should return something like a - Method (for def x.foo...) or - UnboundMethod or [Symbol, Class] pair (for class X; def foo ... ) Or is the idea to simply use "self" in that class?