This is really more of a Python question than an IronPython question, but I'm not currently on any non-Iron Python lists. :)
The following definition results in an error under both CPython 2.5 and IronPython. Decorating a method as static or class prevents attributes being set on the resulting definition. def decorate(obj): obj.decorated = True return obj class X: @decorate @staticmethod def foo(): pass Does anyone know the "why" of this behavior? I can work around this problem by declaring the decorators in the opposite order, but it seems like an odd imposition to put on the consumers of the code in question. I'm worried that I'm missing something about the expected semantics of these standard functions. -- Curt Hagenlocher [EMAIL PROTECTED]
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com