msgpack-python has an option: use_list=False to its unpacker to allow for decoding to tuple by default.
I noticed in the docs that tuples are only used for array types when used as hashable keys.
Is there a reason there isn't a way to either offer the tuple-as-default by a manual flag or, just by default decode to the same type considering they're ostensibly more performant in python then list?
msgpack-pythonhas an option:use_list=Falseto its unpacker to allow for decoding totupleby default.I noticed in the docs that tuples are only used for array types when used as hashable keys.
Is there a reason there isn't a way to either offer the
tuple-as-default by a manual flag or, just by default decode to the same type considering they're ostensibly more performant in python thenlist?