Python pickle: dealing with updated class definitions
问题 After a class definition is updated by recompiling a script, pickle refuses to serialize previously instantiated objects of that class, giving the error: "Can't pickle object: it's not the same object as " Is there a way to tell pickle that it should ignore such cases? To just identify classes by name, ignore whichever internal unique ID is causing the mismatch? I would definitely welcome as an answer the suggestion of an alternative, equivalent module which solves this problem in a