Simple example of use of __setstate__ and __getstate__

StackOverflow

I don"t know what the __setstate__ and __getstate__ methods do, so help me with a simple example.





Tutorials