This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aggieNick02
Recipients aggieNick02, josh.r
Date 2019-09-22.02:54:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569120849.25.0.935396729661.issue38241@roundup.psfhosted.org>
In-reply-to
Content
Wow, that's a great catch with bytearray on py2. Protocols 0-2 are all actually supposed to work with python 2, and I was using 0 from Py3 as it's the default for Py2, and what I want to use during a short transition where both Py3 and Py2 are operating on my pickled data. I was surprised when Py3's protocol 0 output was so different than Py2's protocol 0.

To be "human-readable", I think the protocol would have to be even stricter, omitting the non-printable ASCII characters.

I wonder if protocol 0 was initially ASCII (or even stricter), and then this went out the window or was unintentionally not adhered to when new things like bytearray (2.6) were introduced.
History
Date User Action Args
2019-09-22 02:54:09aggieNick02setrecipients: + aggieNick02, josh.r
2019-09-22 02:54:09aggieNick02setmessageid: <1569120849.25.0.935396729661.issue38241@roundup.psfhosted.org>
2019-09-22 02:54:09aggieNick02linkissue38241 messages
2019-09-22 02:54:09aggieNick02create