[issue22005] datetime.__setstate__ fails decoding python2 pickle

Serhiy Storchaka report at bugs.python.org
Thu Dec 6 12:52:52 EST 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

NumPy starves from the same issue. In NumPy this problem was solved by requiring encoding='latin1' passed to unpickler. It makes sense to use the same approach for datetime classes.

----------
versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.4, Python 3.5

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


More information about the Python-bugs-list mailing list