Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def save(obj):
- return (obj.__class__, obj.__dict__) def load(cls, attributes):
- obj = cls.__new__(cls)
- obj.__dict__.update(attributes)
- return obj
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement