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 jcea
Recipients georg.brandl, jcea
Date 2011-02-22.15:05:28
SpamBayes Score 5.146359e-07
Marked as misclassified No
Message-id <1298387128.87.0.469940179293.issue11286@psf.upfronthosting.co.za>
In-reply-to
Content
I got a trivial (41 bytes long) reproductable case:

Pickle the following structure in Python 2.7, and try to unpickle with Python 3.2, using a "latin1" encoding:

"""
{'ya_volcados': {'comment': ''}}
"""

Load with:

"""
#!/usr/local/bin/python3

import pickle

f=open("z.pickle", "rb").read()

a=pickle.loads(f,encoding="latin1")
"""

(I use "latin1" because my real pickle includes binary data stored as strings. Note that the testcase doesn't content binary data).

Python 3.2, 32 bits. Tested under Solaris and Linux.

This worked in Python 3.1.3, so we have a regression.
History
Date User Action Args
2011-02-22 15:05:28jceasetrecipients: + jcea, georg.brandl
2011-02-22 15:05:28jceasetmessageid: <1298387128.87.0.469940179293.issue11286@psf.upfronthosting.co.za>
2011-02-22 15:05:28jcealinkissue11286 messages
2011-02-22 15:05:28jceacreate