[issue13505] Bytes objects pickled in 3.x with protocol <=2 are unpickled incorrectly in 2.x

Antoine Pitrou report at bugs.python.org
Wed Nov 30 23:48:26 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

After a bit of testing, my idea was flawed, as str() doesn't accept an encoding parameter in 2.x: `str(u'foo', 'latin1')` simply raises a TypeError.

----------

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


More information about the Python-bugs-list mailing list