4 ms·
From https://github.com/msgpack/msgpack/blob/master/spec.md https://github.com/msgpack/msgpack/blob/master/spec.md Raw String extending Raw type represen
by prutschman 11y ago
From https://github.com/msgpack/msgpack/blob/master/spec.md https://github.com/msgpack/msgpack/blob/master/spec.md
Raw
String extending Raw type represents a UTF-8 string
Binary extending Raw type represents a byte array
- rspeer 11y agoAh okay, I didn't know there was now a specific String type (and that the one I was calling 'str' is called 'raw'). Does the Python library use it?
- prutschman 11y agoIt can: see https://github.com/msgpack/msgpack-python#string-and-binary-type https://github.com/msgpack/msgpack-python#string-and-binary-...
- rspeer 11y agoI don't even know what to believe anymore. That documentation is referring to two types, with "raw" renamed to "str" plus a new "bin", which is what I thought it was. But the link you posted referred to three types, where "str" and "bin" subclass "raw", which sounded like it provided a non-backward-compatible "str" that's guaranteed to be text.