Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
BUG: Unpacking PY2 msgpack in PY3 #12142
Comments
jreback
added Unicode Msgpack Difficulty Intermediate
labels
Jan 26, 2016
jreback
added this to the
Next Major Release
milestone
Jan 26, 2016
|
ok, I don't see a versioning schema in the actual packed file? Is it possible to add one? so we can then conditionally do things. |
|
I think the cleanest solution would be to sprinkle
The other option would be to test for bytes vs strings in
|
kawochen
referenced
this issue
Jan 27, 2016
Closed
DEPR: GH10623 remove items from msgpack.encode for blocks #12129
|
What do people think? Would like to fix in 0.18.0. |
jreback
modified the milestone: 0.18.0, Next Major Release
Feb 12, 2016
|
closed by #12129 |
kawochen commentedJan 26, 2016
In #10686, I should have made all the strings in
encodeUnicode strings. Now'abc'packed in P2 becomes (or rather remains as)b'abc'when unpacked in P3. This I think is the desired behavior (bytes remain as bytes and text remains as text), but it causes errors indecode, because, for example,'typ'(==u'type'in P2) is expected whileb'typ'(=='typ'in P2) is the key.Reading in the other direction is fine because P2 is more tolerant of these things.
To reproduce this,