![](https://secure.gravatar.com/avatar/047f2332cde3730f1ed661eebb0c5686.jpg?s=120&d=mm&r=g)
Aug. 3, 2004
12:58 a.m.
Can it? I must've missed that. It sure sounds like an incredible hack -- how to you prevent the default behavior that the list of decorators is thrown away by the interpreter?
By using sys.settrace (and a careful tracer implementation to avoid interfering with debuggers or other active tracers):
Ah, yuck. Not an acceptable solution. And it doesn't let you write [classmethod] -- you have to wrap the 'classmethod' in something relatively ugly. But let's move on.
Because that syntax received significant boohs when I presented it at EuroPython.
And "@" *didn't*??? Ah well. C'est la vie.
Indeed it didn't. --Guido van Rossum (home page: http://www.python.org/~guido/)