-
Notifications
You must be signed in to change notification settings - Fork 16
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
Passthrough int and tuple #64
Conversation
Thanks for your contribution!
|
Nevermind regarding the tuple as we really can't distinguish those in msgpack spec. |
On 3., when you want to pass-through option variable to an end-user having a variable representing 0 is more explicit. e.g. def pack_this_for_me_please(obj, option = ormsgpack.OPT_PASSTHROUGH_INT):
<some preprocessing>
return ormsgpack.packb(value, option=option) If one now wishes to disable OPT_PASSTHROUGH_INT it has to set the default variable of If #65 is resolved, one can just pass |
Let's fix it instead of making work around 😅. |
I fixed the opt=None thingy. Besides my other notes, make sure to add a CHANGELOG entry. |
Tnx for the quick feedback and resolving of #65. I'll process your notes today and a CHANGELOG entry. |
I've also added a CHANGELOG note. |
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.
Add credit in the changelog and I'll merge it :)
Thanks a lot. I'll release 1.1.0 today. |
We have developped some functionality for ormsgpack that is currently not supported, but you might want to support:
This PR adds:
OPT_NO_OPT
constant, for convenience of the user (with value 0).int
s are allowed, andNone
-values give errors.Please let me know if you would like to add (part of) this functionality.