[issue6784] byte/unicode pickle incompatibilities between python2 and and python3

RonnyPfannschmidt report at bugs.python.org
Wed Aug 26 14:42:25 CEST 2009


RonnyPfannschmidt <Ronny.Pfannschmidt at gmx.de> added the comment:

the basic behavior i want to see for all protocols <= 2

1. python 2 string maps to python3 byte-string
2. python 2 unicode maps to python3 string
3. python 3 string map to python 2 unicode 
4. python 3 bytestring maps to python 2 string

anything else is is confusing and may break
for example one can't unpickle '\xFF' in python3 if it was pickled in
python2

note that these changes seem irrelevant for protocol 3 as python2.x
doesn't support it

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6784>
_______________________________________


More information about the Python-bugs-list mailing list