I\'m using type() to dynamically generate classes that will ultimately be pickled. The problem is that the un-pickling process needs the definition of the class
type()
One idea would be to pickle a tuple with:
This would allow you to pickle a class and then reconstruct it later using type() and subclassing Unpickler.