I'm working with a "bunch-class" just to save attributes.
class Args:pass
args = Args()
args.test = "test"
args.bla = [...]
Then I pass args
as data
to other functions (data=args
). I think my problem is that only a reference is given to data
: data = <__main__.Args object at 0x09E41050>
Im trying to use Pickle, but this error apears: pickle.PicklingError: Can't pickle <class '__main__.Args'>: it's not found as __main__.Args
.
I dont know exactly if the problem is caused by the reference, but I think its probably.