[issue6290] cPickle can misread data type
Alexandre Vassalotti
report at bugs.python.org
Tue Jun 23 03:52:30 CEST 2009
Alexandre Vassalotti <alexandre at peadrop.com> added the comment:
Could you give me the output of this?
import cPickle
print repr(cPickle.dumps([float('+inf'), float('-inf'), float('nan')]))
print [float('+inf'), float('-inf'), float('nan')]
By the way, are you sure this bug occurs on Python 2.6? Python 2.6 uses
a platform-independent float to string converter (i.e.,
PyOS_double_to_string) which shouldn't output stuff like "1.#INF"
Also, can you verify that the bug does not occur with pickle protocol 1
and over?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6290>
_______________________________________
More information about the Python-bugs-list
mailing list