[issue2389] Array pickling exposes internal memory representation of elements
Alexandre Vassalotti
report at bugs.python.org
Mon Aug 11 07:27:19 CEST 2008
Alexandre Vassalotti <alexandre at peadrop.com> added the comment:
I don't see why this cannot be fixed easily. All we need to do is fix
the __reduce__ method of array objects to emit a list--i.e. with
array.tolist()--instead of a memory string. Since the reduce protocol is
just a fancy way to store the constructor arguments, this won't break
unpickling of array objects pickled by previous Python versions.
And here is a patch against the trunk.
----------
keywords: +patch
nosy: +alexandre.vassalotti
Added file: http://bugs.python.org/file11096/fix_array_pickling.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2389>
_______________________________________
More information about the Python-bugs-list
mailing list