Yes, we should probably change this to use System.Double.ToString('G17')
On Thu, Sep 4, 2008 at 7:41 AM, Christian Muirhead <
[EMAIL PROTECTED]> wrote:
> Michael Foord wrote:
>
>> Pickle on IronPython doesn't preserve sufficient information to unpickle
>> floats accurately:
>>
>> CPython:
>> >>>
Michael Foord wrote:
Pickle on IronPython doesn't preserve sufficient information to unpickle
floats accurately:
CPython:
>>> a = 1 /3.0
>>> import cPickle as pickle
>>> pickle.loads(pickle.dumps(a)) == a
(Michael meant to say that this was True)
IronPython:
>>> import cPickle as pickle
Pickle on IronPython doesn't preserve sufficient information to unpickle
floats accurately:
CPython:
>>> a = 1 /3.0
>>> import cPickle as pickle
>>> pickle.loads(pickle.dumps(a)) == a
IronPython:
>>> import cPickle as pickle
>>> a = 1 /3.0
>>> pickle.loads(pickle.dumps(a)) == a
False
This is a