[issue31829] Portability issues with pickle

Serhiy Storchaka report at bugs.python.org
Mon Feb 18 09:07:30 EST 2019


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

This can help with migrating to Python 3.

Python 2 programs often open files in text (default) mode for pickling and unpickling. With these changes you will get a warning when run the interpreter with the -3 option. You can also make the producer opening a file in binary mode for compatibility with Python 3, and be sure that the Python 2 consumer will read it correctly even from a file opened in text mode on Windows.

----------

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


More information about the Python-bugs-list mailing list