-
Notifications
You must be signed in to change notification settings - Fork 288
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
Use a default serializer that is not only for date types #664
Conversation
c1707ed
to
d58b3f4
Compare
jupyter_client/jsonutil.py
Outdated
"""default function for packing datetime objects in JSON.""" | ||
"""DEPRECATED: Use jupyter_client.jsonutil.json_default""" | ||
warnings.warn( | ||
"date_default is deprecated. Use jupyter_client.jsonutil.json_default.", stacklevel=2 |
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.
Would you care to add a since version XXX
, I don't know if you want to do 7.0 or backport. But I think that will help users to transition.
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 will do it :)
Should we do backports to 6.x.x
? I would actually not mind doing it, and it's not that big of a change, and not backward-incompatible.
+1 |
d58b3f4
to
62bc802
Compare
Is it ready to be merged? |
I guess I still need to process #664 (comment) But the question is what should be the comment? Should it be |
I think |
62bc802
to
3881f9d
Compare
Done :) |
Not quite yet :-) |
3881f9d
to
cdb5fc3
Compare
This would allow making more general changes here. I am also adding serialization of bytes type into base64.
cdb5fc3
to
1363f53
Compare
Thanks! |
Thank you! |
This would allow making more general changes here. I am also adding serialization of bytes type into base64.
For more context, this is going in the direction of ipython/ipykernel#706. This allows getting rid of the
json_clean
function, moving the bytes treatment from ipykernel to jupyter_client when actually doing the serializion of the object.