Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for serialization with jsonpickle #309

Open
johannesloibl opened this issue Jun 29, 2022 · 0 comments
Open

Support for serialization with jsonpickle #309

johannesloibl opened this issue Jun 29, 2022 · 0 comments

Comments

@johannesloibl
Copy link

In my application i am serializing the state using jsonpickle. Therefor state_pickler.State needs two additional functions implemented to support this. Maybe you consider adding this to main.

    def __getstate__(self):
        return dict(self)

    def __setstate__(self, state):
        dict.__init__(self, **state)
        self.__dict__ = self
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant