How to recover a pickled class and its instances
问题 I would like to store a class and many instances for later use, or to give to someone else. So far I can pickle and recover the instances, but I have to recreate the class by hand before loading them. I've looked at this documentation which leads me to believe I should be able to do this somehow, but I can't seem to find out exactly how to do it. EDIT: I've read this answer discussing the use of dill (see this answer also), but I don't have dill installed. I'd like a pickle solution if it