enthought / enthought/apptools

Support for serialization with jsonpickle

Open
#309 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
38
Forks
21
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.