可以说我下面的代码:
def myDecorator(func):
def wrapper(self):
try:
func(self)
except Exception as e:
print "The argument of the function was:" # print "Some Text"
raise
wrapper.__name__ = funct.__name__
return wrapper
@myDecorator
def do_something(self):
do_something_again("Some text")
我的问题是:如何在我的“except”块中显示赋予函数“do_something_again”的参数?