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

Merlijn van Deen report at bugs.python.org
Sun Feb 19 16:49:20 CET 2012


Merlijn van Deen <valhallasw at gmail.com> added the comment:

Last night, I hacked together a wrapper to do what loewis suggested [1]. It pickles bytes to str (for protocol <= 2), and unpickles str to bytes.

If I (ever) get the build system and tests of python itself to work, I'll try and see if I can implement a nicer solution - at least for pickle.py.

[1] https://github.com/valhallasw/py2/blob/master/bytestrpickle.py

----------

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


More information about the Python-bugs-list mailing list