I'm having some trouble doing this. Currently I have a module which has a bunch of classes in it, some of these classes are going to be decorated to indicate some things.
What I would like is to create a new, fake module which contains only the decorated classes. So something like this:
class FakeModule: pass
def Decorator(cls):
attr = getattr(RealModule, cls)
setattr(FakeModule, cls, attr)
Any suggestions? I'm pretty new to python and python decorators so I'm not really sure what the proper way to do this is.