Skip to content Skip to sidebar Skip to footer

Pickling __setstate__ And __getstate__ Not Invoking On Class

I have a class that is part of multiple inheritance, and the __getstate__ and the __setstate__ functions never get called on the child class. class BaseGeometery(dict): pass @

Solution 1:

Your def __getstate__(self):, should return something.

Read: handling-stateful-objects

Post a Comment for "Pickling __setstate__ And __getstate__ Not Invoking On Class"