so decorators only pass the object and not any instance of the object as the
implied argument? Is this right?
The idea was to use @setname instead of instance.SetName(instance.__name__).
I thought decorators would do this, but it seems not.
--
http://mail.python.org/mailman/listinfo/pyth
The output is still not what I want. Now runtime error free, however the output
is not what I desire.
def setname(cls):
'''this is the proposed generator to call SetName on the object'''
try:
cls.SetName(cls.__name__)
except Exception as e:
print e
finally: