[Python-Dev] Call for defense of @decorators (original) (raw)

Chris King colanderman at gmail.com
Thu Aug 5 21:31:40 CEST 2004


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.



More information about the Python-Dev mailing list