Python Class Decorator
I am trying to decorate an actual class, using this code: def my_decorator(cls): def wrap(*args, **kw): return object.__new__(cls) return wrap @my_decorator class TestClass(object): def __init__(self): print "__init__ should run if object.__new__ correctly returns an instance of cls" test = TestClass() # s...