![](https://secure.gravatar.com/avatar/01aa7d6d4db83982a2f6dd363d0ee0f3.jpg?s=120&d=mm&r=g)
Aug. 3, 2004
2:53 p.m.
On Tue, 2004-08-03 at 10:32, Guido van Rossum wrote:
I don't understand why you prefer your hack over the established way to do decorators pre-2.4, which is
def foo(): ... foo = staticmethod(foo)
This works across releases (including IronPython), doesn't require any magic, is documented, etc. So if your main constraint is that it be implementable pre-2.4, you already have a solution. Isn't that much better than spending effort on hacks based on sys.settrace (which are surely going to produce bafflement from users who aren't familiar with that implementation hack)?
+1 -Barry