[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

Antoine Pitrou report at bugs.python.org
Tue Feb 22 16:10:30 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

Ok, so it boils down to:

>>> pickle.loads(b'\x80\x02}q\x00U\x00q\x01h\x01s.')
{'': ''}
>>> pickle.loads(b'\x80\x02}q\x00U\x00q\x01h\x01s.', encoding='latin1')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: operation forbidden on released memoryview object

(this is protocol 2, by the way. Protocol 0 works fine.)

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11286>
_______________________________________


More information about the Python-bugs-list mailing list