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

Little framework for customizing the handling of low-level objects #12

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jimfulton
Copy link
Contributor

This is a very advanced feature and likely to be painful to use, but hopefully it will help when it's really needed.

Added a dumps function to help debug and understand JSON generation.

Added logic to run the doctests in jsonpickle.

Copy link
Contributor

@jamadden jamadden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, at least in isolation.

module, if so, you may just be able to use them. If not and
they're instances of ``GET`` or ``PUT`` objects, then they wrap
data which you can get via ``v`` attributes. If that doesn't
work, you may just need to give up.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose these last few sentences are deliberately vague.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Caveat emptor.

I tried to add reducers for the collections in the collections package and gave up (for now) because no collection had consistent arguments across versions in the travis tests. deque objects had args for Python 3.5 that were different than the args for Python 3.4, which were the same as the args for python 3.6. :/

@jimfulton
Copy link
Contributor Author

OK, I'll go ahead and plumb this into Newt.

@jimfulton
Copy link
Contributor Author

I plumbed this into Newt and it's configs. This is ready for remaining review. :)

@jimfulton
Copy link
Contributor Author

Note that I'll fix tests and conflicts when a reviewer shows up. :)

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

Successfully merging this pull request may close these issues.

2 participants