[issue38241] Pickle with protocol=0 in python 3 does not produce a 'human-readable' format

Josh Rosenberg report at bugs.python.org
Fri Sep 20 22:12:26 EDT 2019


Josh Rosenberg <shadowranger+python at gmail.com> added the comment:

This seems like a bug in pickle; protocol 0 is *defined* to be ASCII compatible. Nothing should encode to a byte above 0x7f. It's not actually supposed to be "human-readable" (since many ASCII bytes aren't printable), so the docs should be changed to describe protocol 0 as ASCII consistently; if this isn't fixed to make it ASCII consistently, "human-readable" is still meaningless and shouldn't be used.

I'm kind of surprised the output from Py3 works on Py2 to be honest.

----------
nosy: +josh.r

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


More information about the Python-bugs-list mailing list