[Python-Dev] Re: Candidate Function Decorator (original) (raw)
Raymond Hettinger python at rcn.com
Tue Apr 13 13:48:34 EDT 2004
- Previous message: [Python-Dev] Re: Candidate Function Decorator
- Next message: [Python-Dev] Re: Candidate Function Decorator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have the impression that it is proposed that the function f will not yet be bound to its name (f.funcname) in its environment at the time the decorator is called.
Hmm, that would be a change. Currently, staticmethod() and classmethod() take fully formed functions as inputs. So, if your impression is correct, there would be a small semantic difference between the [classmethod] prefix and f=classmethod(f) postfix decoration.
Raymond Hettinger
################################################################# ################################################################# ################################################################# ##### ##### ##### ################################################################# ################################################################# #################################################################
- Previous message: [Python-Dev] Re: Candidate Function Decorator
- Next message: [Python-Dev] Re: Candidate Function Decorator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]