-
Notifications
You must be signed in to change notification settings - Fork 15
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
base: master
Are you sure you want to change the base?
Conversation
Also added dumps testing and debugging aid. Bail on OrderedDict. It's unclear what the correct JSON serialization is.
There was a problem hiding this 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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. :/
OK, I'll go ahead and plumb this into Newt. |
I plumbed this into Newt and it's configs. This is ready for remaining review. :) |
Note that I'll fix tests and conflicts when a reviewer shows up. :) |
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.