[issue6137] Pickle migration: Should pickle map "copy_reg" to "copyreg"?

Alexandre Vassalotti report at bugs.python.org
Sun May 31 02:09:45 CEST 2009


Alexandre Vassalotti <alexandre at peadrop.com> added the comment:

If I understood correctly, #3675 is about making pickle data generated
by Python 3 readable by Python 2. However, this issue is about
compatibility in the other direction—i.e., making Python 2 pickles
readable by Python 3, which is easier.

I have a patch that make Unpickler translates the old names to the new
ones at runtime. The only thing missing in the patch is the unit tests
since I am not sure this should be tested. I am thinking using the
approach Collin Winter used for his compatibility tests in #5665.
However, his approach requires bidirectional pickle compatibility
between Python 2 and 3, which we don't have.

----------
keywords: +patch
stage:  -> patch review
Added file: http://bugs.python.org/file14124/compat_pickle.diff

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


More information about the Python-bugs-list mailing list