How can I update the old version of the class object to the new version?

Viewed 32

With python 3.9.12, I have created MyClass objects and dumped it with pickle. Then I've written few more line in def MyClass: to make more methods To test it. I've loaded 10k MyClass object with pickle.

But newly coded methods are not working with loaded class object. How can I update these class objects to newer version of class?

0 Answers
Related