Easy Python Patterns: Capturing the Moment with the Memento Pattern

Introduction You can use the memento pattern to (partially) expose the internal state of an object. One use case for this pattern is to serialize an object to a file or as JSON for example, another is to build an…














