[Python-Dev] Strange error importing a Pickle from 2.7 to 3.2

Jesus Cea jcea at jcea.es
Tue Feb 22 14:35:19 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22/02/11 13:20, Michael Foord wrote:
>> Traceback (most recent call last):
>>    File "<stdin>", line 1, in<module>
>> ValueError: operation forbidden on released memoryview object
> 
> That seems like an odd error, but the decision was made that Python 2
> byte-strings would be unpickled on Python 3 as Unicode strings.

This problem seems NOT related to unicode. In fact, when saying
'encoding="latin1"', my "binary" strings should be converted to unicode
without any kind of issue (my plan was, then, to scan the datastructure
and convert them to native bytes).

The fact is that I get a strange error: "ValueError: operation forbidden
on released memoryview object". Seems like a bug to me. Google shows no
hits. I want to discard any obvious overlooked point.

PS: Just checked... Python 3.1.3 imports the pickle just fine. So busy
migrating my projects to 3.2 (it was my compromise two years ago :), I
don't have time to debug this :).

- -- 
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTWO7l5lgi5GaxT1NAQJVLQP/fZMxsybbHfkbwDEJ/DVaBSj8VZ2dkO38
oXsH9ojspbxRTv9BCNakKt8SyDMtzJIB6kaZ10qScxftDAGs22xlkpOJyGxBYgNZ
Ut5U425YuUTCyFQyYfREWNs2AqUQOWymnXgIlThDS93n1Y+W2S1ovcT9WJaHyebe
ZVDabLUZYlw=
=IBN8
-----END PGP SIGNATURE-----


More information about the Python-Dev mailing list