Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foo1
- +--->bar
- | --->context
- +--->baz
- | +--->context
- | --->qux
- --->context
- def __getstate__(self):
- my_dict = dict(self.__dict__)
- my_dict['context'] = None # We don't save the context
- return my_dict
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement