Short answer : None.
Longer answer . You can do this by retiring to the stack trace (see module inspect), but this is not a great idea.
Full answer . While the function is decorated, it is still an unrelated function. Try the following:
def my_dec(fn):
print dir(fn)
return fn
class A(object):
@my_dec
def test(self):
pass
print dir(A.test)
You can see that the raw function is passed to the decorator, and the associated function is available after the class declaration.
, metaclass . , , .