[issue22005] datetime.__setstate__ fails decoding python2 pickle

Paul Ganssle report at bugs.python.org
Fri Dec 7 10:03:39 EST 2018


Paul Ganssle <p.ganssle at gmail.com> added the comment:

I'm not sure I agree with how this was resolved. We're adding complexity to the datetime unpickler to support unpickling pickles created in Python 2 in Python 3? I also don't really understand the encoding parts of it, but it smells very fishy to me.

I agree with Gregory here, pickle has so many other problems when used between versions of Python that it's simply not useful for cross-version serialization. It is useful for things like inter-process communication between two trusted instances of Python programs running the same version.

Also, what is the plan here for 2020+? Do we remove this hack for Python 3.9, or are we stuck with it indefinitely?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue22005>
_______________________________________


More information about the Python-bugs-list mailing list