[issue31829] Portability issues with pickle

Serhiy Storchaka report at bugs.python.org
Sat Nov 11 13:28:45 EST 2017


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

It is possible to resolve issue with Unicode strings ending with \r. We can add a special mark in the stream (a combination of opcodes which is no-op) before writing the first Unicode strings ending with \r. If this mark is encountered in an input stream, therefore it was saved with new Python version, and ending \r can be removed from loaded Unicode strings.

----------

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


More information about the Python-bugs-list mailing list