[issue31829] Portability issues with pickle

Serhiy Storchaka report at bugs.python.org
Sat Oct 21 05:55:03 EDT 2017


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

PR 4067 fixes following issues when unpickle on Unix or in binary mode files written with protocol 0 in text mode on Windows:

* ints were unpickled as longs by cPickle.
* bools were unpickled as longs by cPickle and as ints by pickle.
* floats couldn't be unpickled by cPickle.
* strings couldn't be unpickled by pickle.
* instances and globals couldn't be unpickled. And error messages were confusing due to invisible \r.
* pickles with protocol 0 containing Unicode string with \x1a couldn't be unpickled on Windows in text mode.

----------

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


More information about the Python-bugs-list mailing list