[New-bugs-announce] [issue6290] cPickle can misread data type

Alex James report at bugs.python.org
Tue Jun 16 01:19:54 CEST 2009


New submission from Alex James <ac.james at shaw.ca>:

When using cPickle to pickle / unpickle an object instance whose
__dict__ contains a dictionary of NumPy Arrays (on a windows32 system),
some of the array elements have the wrong type raising a ValueError:
could not convert string to float.  

On UNIX platform this error does not occur, and the data is read out in
the correct type every time.  
Forcing the caller to use pickle.py module instead removed the issue.

Statements about the imprecision of cPickle (such as issue1536, 655802),
or its deprecaition (now I can't find where that was mentioned), would
assist.  By contrast the current state of the documentation implies that
cPickle is better overall, and thus should be used preferentially.

----------
assignee: georg.brandl
components: Documentation, Extension Modules, Windows
messages: 89418
nosy: ac.james, georg.brandl
severity: normal
status: open
title: cPickle can misread data type
type: behavior
versions: Python 2.6

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


More information about the New-bugs-announce mailing list