[Python-Dev] Call for defense of @decorators

Phillip J. Eby pje at telecommunity.com
Thu Aug 5 21:54:09 CEST 2004


At 03:31 PM 8/5/04 -0400, Chris King wrote:
>On Thu, 5 Aug 2004 21:07:18 +0200, Ronald Oussoren
><ronaldoussoren at mac.com> wrote:
> >
> > On 5-aug-04, at 20:48, Gustavo Niemeyer wrote:
> > > What is objc.signature() doing?
> >
> > The argument is fairly magic, in that most people wouldn't know how the
> > interpret it. The function itself is easy enough: it creates a custom
> > method object. The meta-class for Objective-C classes extracts the
> > method signature from that method object and uses it build the right
> > method description on the Objective-C side of the bridge.
>
>Isn't this more a use case for function attributes, rather than
>decorators?  Decorators seem like overkill in this case.

That argument has been done to death several times in the last year 
here.  Function attributes aren't a replacement for decorators.



More information about the Python-Dev mailing list