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
Date 2019-09-20.22:53:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569019992.12.0.181360535458.issue38241@roundup.psfhosted.org>
In-reply-to
Content
The docs for pickle, in python 2, say that the default pickle protocol, 0, produces ASCII. In the python 3 docs, this has changed to "human-readable". While the pickle output with protocol 0 loads fine in python2, it is definitely not human-readable, as it is not valid ASCII and contains every possible byte.

To see a simple example, run this in both python 2 and 3

import pickle
a = bytearray(range(255)) #bytes containing 0..255
b = bytes(a)
c = pickle.dumps(b,protocol=0)
print(c)#human readable in 2, not in 3
c.decode('ascii')#throws in 3, not in 2
History
Date User Action Args
2019-09-20 22:53:12aggieNick02setrecipients: + aggieNick02
2019-09-20 22:53:12aggieNick02setmessageid: <1569019992.12.0.181360535458.issue38241@roundup.psfhosted.org>
2019-09-20 22:53:12aggieNick02linkissue38241 messages
2019-09-20 22:53:11aggieNick02create