-
Notifications
You must be signed in to change notification settings - Fork 226
Problem with packing/unpacking tuples which is big obstacle in complex structures #202
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
Comments
I will try soon. Current I create Same problem is with str and unicode. That is very ugly. |
Basically speaking, msgpack is json-like, simple and cross-language format. In this case, there are options for you: There are many library users, and only one library maintainer. Filing issue to ask question |
I am not asking question at all but suggest you change in library since it can not be solve simple by use use_bin_type, use_list or encoding as it was explained. It need to force treat tuple and other types as input for "default" encoder - you need add exceptions not pack tuple or list as list, tuple or list as tuple - that will not work - why hash(list()) is exception, tuple().append() is not possible. It limits creation of generic decoder, encoder - it is not limited by msgpack at all. Can you propose some solution?
|
You can be sure that I do not waste your time with questions. I experienced programmer so I can fork and fix you library without problem if there is not law restrictions. You code is nice and clear to be fixed (pure python). |
Have you searched existing issues, or checked master branch at least? |
Uh oh!
There was an error while loading. Please reload this page.
Here is some problem with pack/unpack tuples. As I know msgpack not distinguish between list and tuple and there is not hook to force list or tuple be ExtType. It generates frustrating problems.
See simple example class with hash - nothing special:
It generates problem during unpacking which cannot be solved easily I think:
Do you have any idea how to reconstruct tuple to tuples and list to lists using msgpack if it possible at all?
The text was updated successfully, but these errors were encountered: