Skip to content

Support for serialization with jsonpickle #309

Description

@johannesloibl

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions