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

Martin v. Löwis report at bugs.python.org
Thu Aug 27 23:08:03 CEST 2009


Martin v. Löwis <martin at v.loewis.de> added the comment:

> how about a way to declare one wants exact 1:1 mapping between py2<>py3,
> so str<>bytes and unicode<>str will work for sure

In a sense, that's already possible. Inherit from _Pickler/_Unpickler,
and replace the dispatch dict with a different mapping.

I wouldn't object to supporting this with an option, though, assuming it
was properly documented and implemented for both pickle and _pickle
(probably along with pickletools).

----------

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


More information about the Python-bugs-list mailing list