How to use dill to serialize a class definition?
In the answer to Python pickle: dealing with updated class definitions , the author of the dill package writes: "Ok, I have added this feature to dill in the latest revision on github. Implemented with far less trickery than I thought... just serialize the class definition with the pickle, and voila." Having installed dill and tinkered with it, it's not obvious to me how to actually use this functionality in dill . Could someone provide an explicit example? I would like to pickle the class instance and also serialize the class definition. (I am new to python and I this functionality seems