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 builtin functions and nested classes #206

Merged
merged 2 commits into from Jun 16, 2018

Conversation

mstimberg
Copy link
Contributor

As discussed in #192, this PR adds support for nested class definitions (for Python >=3.3) and for builtin functions such as dir. It fixes several examples mentioned in that issue, but I am not sure whether it does actually help for the problem with KNeighborsClassifier that the OP had.

Closes #176 (which I did not actually see before working on this). Although I'm not sure whether you want to consider it closed given that it only works with Python >= 3.3.

@davvid davvid merged commit 799d312 into jsonpickle:master Jun 16, 2018
davvid added a commit that referenced this pull request Jun 16, 2018
* mstimberg/builtins_and_nested:
  Support encoding/decoding builtin functions
  Support encoding/decoding nested classes

Closes #176
Signed-off-by: David Aguilar <davvid@gmail.com>
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

Successfully merging this pull request may close these issues.

Function jsonpickle.unpickler.loadclass won't work for nested classes
2 participants